Advertisements
Advertisements
Question
Which of the following statement is valid? Why? Also, write their result.
int a; a = 3,014;
One Line Answer
Solution
a = 3,014; – Invalid. Special character comma(,) not allowed.
shaalaa.com
Sample program – A first look at C++ program
Is there an error in this question or solution?
Chapter 9: Introduction to C++ - Data Types, Variables and Expressions - Evaluation - Section - B [Page 151]