- 2

What is the function of char

22nd Jun 2017, 12:01 PM
Muskan Agrawal
7 ответов
+ 5
A character (or char) is a letter of the alphabet, or number or special character. 'H' is a char / or character 'L' is a char / or character '%' is a char '0' (zero) is even a char if it is in single quotes You can use char for a variety of things. The main purpose of them is to construct strings. Strings are just an array (or collection) of chars (or characters). a%4 is a string made up of the following char data a, %, 4 Is that clearer to you now?
22nd Jun 2017, 12:24 PM
jay
jay - avatar
+ 6
@Muskan, You are welcome. In future please do not post multiple questions/spam in the forum. Just be patient and wait for your original question to be answered. If you do not get a response in a reasonable amount of time, say 20 minutes, try re-wording the original question. It may be that no one understood your question. edit: If it seems like it would be a really obvious question, try searching here for the answer. Odds are it has been asked before!
22nd Jun 2017, 12:34 PM
jay
jay - avatar
+ 5
The function/purpose of char is to hold a single [char]acter
22nd Jun 2017, 12:07 PM
jay
jay - avatar
+ 3
1 byte that stores a digit which represents an ASCII character, like 'f'
22nd Jun 2017, 12:11 PM
aklex
aklex - avatar
+ 1
I will check on it jay in future. ..:)
22nd Jun 2017, 12:35 PM
Muskan Agrawal
- 1
Jay I can't able to understand it ans
22nd Jun 2017, 12:11 PM
Muskan Agrawal
- 1
thanx jay
22nd Jun 2017, 12:22 PM
Muskan Agrawal