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;
}

Answer Posted / hr

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism and types?

594


What does namespace mean in c++?

548


What is ios class in c++?

569


Why namespace is used in c++?

596


What is a storage class?

637






How is polymorphism achieved?

577


What is guard code in c++?

629


What is constructor overloading in oop?

597


write string class as your own class in java without using any built-in function

1967


How do you add an element to a set in c++?

547


What makes a language oop?

590


What is c++ best used for?

558


What is the difference between #define debug 0 and #undef debug?

634


what you know about c++?

652


What are the 3 pillars of oop?

607