What is the output of this code? int x = 65, *p = &x; void *q= p; char *r = q; printf("%c", *r); | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the output of this code? int x = 65, *p = &x; void *q= p; char *r = q; printf("%c", *r);

Can anyone explain the above code?

23rd May 2021, 6:47 AM
jayraj kharadkar
jayraj kharadkar - avatar
2 Answers
+ 2
C ist casesensitive. So this Code returns an error due to the uppercase P. Btw, why don't u just link a code?
23rd May 2021, 6:56 AM
Thoq!
Thoq! - avatar
+ 1
Thoq! That's would be typing mistake. So don't see that just give him explanation about the output if you know. Btw that code is enough to explain.
23rd May 2021, 6:59 AM
A͢J
A͢J - avatar