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 Check Whether a character is Vowel or Consonant.

2 Answers  


What is C++11?

0 Answers   Adobe,


Tell us the size of a float variable.

0 Answers   Accenture,


What is Coupling?

0 Answers   Cap Gemini,


Write a program to read the values a, b and c and display x, where x=a/b–c. Test the program for the following values: (a) a = 250, b = 85, c = 25 (b) a = 300, b = 70, c = 70

1 Answers  






What is Copy Constructor?

5 Answers   ABC, Siemens,


What do you know about Volatile keyword in C++? Explain with an example code.

0 Answers   Adobe,


Implement a 2D bit-matrix representing monochrome pixels which will have only OFF/ON values and will take on an average only one bit of memory for each stored bit. How to perform various operations on it?

0 Answers   Adobe,


What are the fundamental features of an object-oriented language?

0 Answers   Accenture,


How to generate random numbers in C++ with a range?

0 Answers  


What are the different scope C++ provide ?

0 Answers   Amdocs,


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

1 Answers  


Categories