0
Char test='s'
What's this? Can someone explain this in detail
3 Respostas
+ 3
char is the data type, it's short for character. Just like an int variable can hold an integer like 5, a char variable can hold a character like 's'.
Test is just the name of the variable.
This whole statement assigns the character 's' to the character variable named test.
If you have any more questions please ask :)
0
Ohk i wanted to know about test, thanks
0
test, in this declaration is a variable. It may be used to store one character in your code. For example, test can store the result of an exam.