int w = 67;
int w(67);
int 67(w);
both (a) and (b), but not (c)
Answer is Right!
Answer is Wrong!
The correct answer is: A. int w = 67;
Option A defines a variable w of type int and assigns it the value 67.
Option B defines a function w with one parameter of type int.
Option C is not valid syntax.
Here
is a more detailed explanation of each option:- Option A: This is the correct answer. It defines a variable
wof typeintand assigns it the value67. - Option B: This defines a function
wwith one parameter of typeint. The function does not have a return value. - Option C: This is not valid syntax. A variable name cannot start with a number.
I hope this helps!