Identify the error in the following program.
#include<iostream.h>
void main()
{
int i = 0;
i = i + 1;
cout « i « " ";
/*comment *//i = i + 1;
cout << i;
}



Identify the error in the following program. #include<iostream.h> void main() { int i ..

Answer / hr

/* comment*//i=i+1; -> Syntax error

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ Interview Questions

Explain the difference between method overriding and method overloading in C++?

0 Answers   Accenture,


What are the costs and benefits of using exceptions?

0 Answers   Amazon,


What are Agilent PRECOMPILERS?

0 Answers   Agilent,


what is friend function in C++?

0 Answers   TCS,


Discuss about iteration statements in C++ .

0 Answers   Agilent,






What is static variable and difference between(const char *p,char const *p,const char* const p).

0 Answers   Accenture,


What is constant keyword in C++? Illustrate its various uses.

0 Answers   Akamai Technologies, Infogain,


It is possible to build a C++ compiler on top of a C compiler. How would you do this?

0 Answers   Amazon,


Tell me about virtual function

1 Answers  


Explain the operator overloading feature in C++ ?

0 Answers  


dynamic scoping is

0 Answers   Siemens,


what is the difference between a pointer and a reference?

0 Answers   Amazon, Blue Star, C DAC,


Categories