What is the output of this code? | 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?

There is a error . plz explain why this error. https://code.sololearn.com/c1N5WohiaOZ4/?ref=app

10th Feb 2019, 3:21 PM
VEERESH MAURYA
VEERESH MAURYA - avatar
3 Answers
+ 2
//define a 10 in not a valid keyword so you have errors https://code.sololearn.com/cOG8rwwNgAdb/?ref=app
10th Feb 2019, 3:29 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
I think it's because you're defining the same variable multiple times
10th Feb 2019, 3:41 PM
Alt
Alt - avatar
+ 1
VEERESH MAURYA You got the error in your code because, when you use #define to set 'a' to 10 it becomes like a constant that you are trying to define again and than change.
10th Feb 2019, 3:44 PM
Ulisses Cruz
Ulisses Cruz - avatar