Question: Problem 1: Which of the followings are the valid variable names in C++? (a) 3x (6) xyz123 @)X2_0_7 (d) s%123 (c)X2_0_7 (d) s%123 (e) errM

 Problem 1: Which of the followings are the valid variable names

Problem 1: Which of the followings are the valid variable names in C++? (a) 3x (6) xyz123 @)X2_0_7 (d) s%123 (c)X2_0_7 (d) s%123 (e) errM (f) d-00 (g) $x (h) #C (1) C++ G) C (k) M_{12} Problem 2: Which of the following are valid C++ statements? Assume that the variables i, x, and percent are already declared as int variables. Assume those variable are properly initialized at the beginning of the program. (c) x=x+x; (d) x = 3 +x; (e) percent = percent; (a) i=i+5; (b) x+2 = x; (f) x= -x; (g) -x= x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!