Ques 1 Variable and Comment
Which of the following is the correct identifier in C++?
a) var_123
b) 123_var
c) $__var
d) #var
Ques 2 Variable and Comment
What is the output of following code?
int main() { string new = "SmallCode"; cout<<"new is: "<<new; return 0; }
Ques 3 Variable and Comment
Which of the following is the correct way to declare a variable?
a) int arr[];
b) int %num;
c) var num;
d) int x[7] ;