Category:C: Difference between revisions

m
Line 91:
char letter = "A";
//declare the variable "letter" of type char, it equals capital A.
//C allows you to treat an ascii value as aits numeralnumeric equivalent whenever you feel like it. Other languages do not.
 
char myString = "Hello"; //define the array "myString" containing the letters "Hello" followed by a null terminator.
1,489

edits