Computer Science · C++ Programming
Which of the following variable declarations does not pass the syntax compilation test in C/C++?
- 1int num1 = 0, num2 = 0;
- 2double add1, int add2 = 0;✓
- 3int add1, add2;
- 4int add1, add2 = 0;
Correct answer
double add1, int add2 = 0;
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length Computer Science mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on C++ Programming?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · C++ Programming