What will be the output of the following C code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 15

What will be the output of the following C code?

a) a = 5 b) a = 10 c) Compilation error d) Runtime error https://code.sololearn.com/c4FPGweA3Xm8/?ref=app

17th Oct 2019, 2:17 AM
Wali Khan Eisakhil
Wali Khan Eisakhil - avatar
4 Answers
+ 1
c
1st Jan 2021, 9:41 AM
tasal sahibzadah
tasal sahibzadah - avatar
+ 3
C) Compilation error
22nd Mar 2020, 1:03 PM
Lutfullah Alokozay
Lutfullah Alokozay - avatar
+ 1
It's compilation error Because you are changing value of a which is already defined in preprocessor using define preprocessor. U can't change value of a variable if it is define in preprocessor using #define a 1 //or any value
17th Oct 2019, 2:33 AM
Chirag Kumar
Chirag Kumar - avatar
+ 1
~ swim ~ it gives error I guess. Right? Because it see B as an another macro
17th Oct 2019, 3:36 AM
Chirag Kumar
Chirag Kumar - avatar