0

What is wrong with declaration statements below: int first = 10, New = 12, last = 3, old = 40;

26th Apr 2017, 12:57 PM
wilson
3 Antworten
+ 11
There isnt anything wrong. If you used new instead of New it is an error because 'new' is a keyword.
26th Apr 2017, 1:03 PM
Pixie
Pixie - avatar
+ 3
What error are you getting? Can you show your full code because there's nothing wrong with the code above.
26th Apr 2017, 1:03 PM
Ghauth Christians
Ghauth Christians - avatar
0
u can not follow naming convention variable name should be in small letter when we use new in place of New than show error because new is a keyword and we not use keyword in declaration.
29th Apr 2017, 8:50 AM
Aman
Aman - avatar