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;
}
Post New Answer View All Answers
What is encapsulation and abstraction? How are they implemented in C++?
What is virtual methods?
How to generate random numbers in C++ with a range?
Is it possible to get the source code back from binary file?
Write a program which uses functions like strcmp(), strcpy()? etc
What does h mean in maths?
What operator is used to access a struct through a pointer a) >> b) -> c) *
What is abstract class in oops?
What is the basic of c++?
What is a dangling pointer in c++?
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
Is java as fast as c++?
Can you explain polymorphism?
Can recursive program be written in C++?
What are the restrictions apply to constructors and destructors?