What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int const p = 5;
cout << ++p;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int const p = 5;
cout << ++p;
return 0;
}A. 5
B. 6
C. Error
D. 8
Answer: Option C

Join The Discussion