- 2
What is the function of char
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?
+ 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!
+ 5
The function/purpose of char is to hold a single [char]acter
+ 3
1 byte that stores a digit which represents an ASCII character, like 'f'
+ 1
I will check on it jay in future. ..:)
- 1
Jay I can't able to understand it ans
- 1
thanx jay