Which of the way(s) below are / is correct to declare a variable in c++?

Options
- int x=0;
- int x (0);
- Both a and b
- int (x) 0;


CORRECT ANSWER : Both a and b

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement