Identify the incorrect statements.
int var = 10;
int *ptr = &(var + 1); //statement 1
int *ptr2 = &var; //statement 2
&&var = 40; //statement 3
int var = 10;
int *ptr = &(var + 1); //statement 1
int *ptr2 = &var; //statement 2
&&var = 40; //statement 3A. Statement 1 and 2 are wrong
B. Statement 2 and 3 are wrong
C. Statement 1 and 3 are wrong
D. Statement 1, 2 and 3 are wrong
Answer: Option C
Related Questions on Variables and Data Types in C plus plus
Which of the following is a valid variable name in C++?
A. myVariable
B. 123variable
C. variable&
D. float
What is the data type of the variable 'x' in the following declaration: double x = 3.14;?
A. int
B. double
C. float
D. char

Join The Discussion