A
Q. What is the output of the following C++ code?
Code:
#include <iostream>
using namespace std;
int main()
{
void x = 5, y = 5;
int s;
s = x + y;
cout << s;
return 0;
}
using namespace std;
int main()
{
void x = 5, y = 5;
int s;
s = x + y;
cout << s;
return 0;
}
- Correct Answer - Option(C)
- Views: 6
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.