int main()
{
int i ,a[i];
i = 0;
a[i] = 10;
cout<< a[i] << endl;
return 0;


}

What will be output of this program?

Answer Posted / ravinder kumar(omnietysolution

Error in program

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between the message and method in c++?

600


What is & in c++ function?

577


When do we run a shell in the unix system?

552


What is a storage class?

633


What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

588






Can we change the basic meaning of an operator in c++?

642


What is the this pointer?

620


What is oops in c++?

579


Is it possible to write a c++ template to check for a function's existence?

562


Give an example of run-time polymorphism/virtual functions.

550


What is lazy initialization in c++?

641


Define friend function.

557


Why iomanip is used in c++?

627


What is constructor in C++?

614


What is encapsulation in c++?

656