+ 3

Hi guys! If constant 0x13 and 'c' are char type what will be printf format specifier for each of following constants

question

20th Oct 2018, 1:30 PM
Muhlisa
Muhlisa - avatar
11 Answers
+ 1
Sincerely depends. Here some examples: https://code.sololearn.com/cTo5DMuaDGDD Remember char is a integer type. But char not equals int.
20th Oct 2018, 2:12 PM
Anya
Anya - avatar
+ 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
20th Oct 2018, 2:18 PM
Taste
Taste - avatar
0
and what are the following constants?
20th Oct 2018, 1:52 PM
Bebida Roja
Bebida Roja - avatar
0
i don't know I'm trying to find
20th Oct 2018, 1:54 PM
Muhlisa
Muhlisa - avatar
0
oh, printf("%c%c", 0x13, 'c') will do, I think
20th Oct 2018, 2:08 PM
Bebida Roja
Bebida Roja - avatar
0
oh I got it
20th Oct 2018, 2:25 PM
Muhlisa
Muhlisa - avatar
0
thanks
20th Oct 2018, 2:30 PM
Muhlisa
Muhlisa - avatar
0
please,give me exercises.
21st Oct 2018, 7:04 PM
Kyaw Thet Tun
Kyaw Thet Tun - avatar
0
Hi
8th Mar 2019, 11:53 AM
Kaushalya
Kaushalya - avatar
0
Hii muhlisa di
17th May 2019, 12:18 PM
Puskar Sharma
0
Hii kaushallya
17th May 2019, 12:18 PM
Puskar Sharma