Predict the output because it's showings unexpected answer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Predict the output because it's showings unexpected answer

#include <stdio.h> #define PI 3.1416 void main() { #define MAX 1024 printf("PI:%f\n",PI); printf("MAX:%f\n",MAX); }

24th Jun 2020, 12:00 PM
MANSOOR PASHA
MANSOOR PASHA - avatar
1 Answer
+ 2
Use %d for MAX
24th Jun 2020, 12:29 PM
skaarj1989
skaarj1989 - avatar