Related questions
C char array initialization
I'm not sure what will be in the char array after initialization in the following ways.
1.char buf[10] = "";
2. char buf[10] = " ";
3. char buf[10] = "a";
For case 2, I think buf[0] should be ' ', buf[1] should be '\0', and from buf[2] …
How to convert char to integer in C?
Possible Duplicates:
How to convert a single char into an int
Character to integer in C
Can any body tell me how to convert a char to int?
char c[]={'1',':','3'};
int i=int(c[0]);
…