[amp_mcq option1=”int w = 67;” option2=”int w(67);” option3=”int 67(w);” option4=”both (a) and (b), but not (c)” correct=”option1″]
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!