Output shows as 8x...why?? And wen i give %s prints some string why..xplain me plz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Output shows as 8x...why?? And wen i give %s prints some string why..xplain me plz

#include <stdio.h> #define print(x) #x int main() { printf("%c"print(x)); return 0; }

28th Dec 2017, 11:39 AM
C Lover
4 Answers
+ 1
please correct the syntax function not correctly defined
28th Dec 2017, 6:47 PM
Owais Khan
Owais Khan - avatar
+ 1
define should be void there should be no # it is used for using libraries
29th Dec 2017, 5:00 AM
Owais Khan
Owais Khan - avatar
0
could u crct it Wich one r u telling
29th Dec 2017, 2:47 AM
C Lover
0
no man....# can be used stringizing operator too
29th Dec 2017, 5:03 AM
C Lover