Question
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int x = 5, y = 5;
6.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
int x = 5, y = 5;
6.
cout
Answer: Option B
Was this answer helpful ?
The values will be preincemented and predecremented, So it will print as 64.
Output:
$ g++ incre2.cpp
$ a.out
64
Was this answer helpful ?
Submit Solution