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

How can you tell what shell you are running on unix system?

873


How does the copy constructor differ from the assignment operator (=)?

866


Can recursive program be written in C++?

920


What is the best c++ book?

1014


What is an operator in c++?

810


List the special characteristics of constructor.

937


Explain why C++ is not purely Object Oriented Language

778


What does ios :: app do in c++?

782


What are oops methods?

764


Difference between struct and class in terms of access modifier.

963


What is a function in oop?

830


What is the extraction operator and what does it do?

833


What is expression parser in c++

2148


What are the advantages of using friend classes?

883


What is overriding vs overloading?

796