What will be the output of the following C++ code? 1. #include <iostream> 2. using namespace std; 3. int main() 4. { 5. int const p = 5; 6. cout << ++p; 7. return 0; 8. } a) 5 b) 6 c) Error d) 8
What will be the output of the following C++ code? 1. #include <iostream> 2. using namespace std; 3. int main() 4. { 5. int const p = 5; 6. cout << ++p; 7. return 0; 8. } a) 5 b) 6 c) Error d) 8
Share
c) Error