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

Write a C++ Program to find Square Root of a number using sqrt() function.

1 Answers  


How to run C++ program in cmd

0 Answers  


Write a C++ Program to Find Sum and Average of n numbers using for loop.

1 Answers  


What are Agilent PRECOMPILERS?

0 Answers   Agilent,


Explain about Searching and sorting algorithms with complexities

0 Answers   Accenture,


How to invoke a C function using a C++ program?

0 Answers   Alter,


Find the Factorial of a number using a program.

0 Answers   Accenture,


Is there a difference between class and struct?

0 Answers  


Explain the importance of method overloading in C++?

0 Answers   Akamai Technologies, Infogain,


What are the costs and benefits of using exceptions?

0 Answers   Amazon,


Write a program to read two numbers from the keyboard and display the larger value on the screen

1 Answers  


What are issues if we mix new and free in C++?

0 Answers  


Categories