Examveda

What happens if the following line is executed in C and C++?
const int a;

A. Error in both C and C++

B. Warning in both C and C++

C. Error in C and successful execution in C++

D. Error in C++ and successful execution in C

Answer: Option D


Join The Discussion

Related Questions on Introduction to C plus plus