+ 3
Hi guys! If constant 0x13 and 'c' are char type what will be printf format specifier for each of following constants
question
11 Answers
+ 1
Sincerely depends. Here some examples:
https://code.sololearn.com/cTo5DMuaDGDD
Remember char is a integer type. But char not equals int.
+ 1
yeah, nice thing about printf is you can specify you want to output
for example
printf("%c%c%c%c",97,'a',0x61,0141);
it'll result aaaa
since every number and char can be represented by a and we specify that it needs to be a character at the output
0
and what are the following constants?
0
i don't know I'm trying to find
0
oh, printf("%c%c", 0x13, 'c') will do, I think
0
oh I got it
0
thanks
0
please,give me exercises.
0
Hi
0
Hii muhlisa di
0
Hii kaushallya