Question
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
void a = 10, b = 10;
6.
int c;
7.
c = a + b;
8.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
void a = 10, b = 10;
6.
int c;
7.
c = a + b;
8.
cout
Answer: Option B
Was this answer helpful ?
void will not accept any values to its type.
Was this answer helpful ?
Submit Solution