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 / anil hooda

it will return any integer value.....

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is atoi defined?

581


What is the use of this pointer in c++?

570


Can I learn c++ without learning c?

563


What is an object in c++?

614


Is c++ faster than c?

594






What is the difference between global variables and static varables?

572


What do you mean by early binding?

601


What is the best way to declare and define global variables?

698


What is general form of pure virtual function? Explain?

513


What are the rules about using an underscore in a c++ identifier?

634


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

637


What do the header files usually contains?

630


Is there finally in c++?

621


Define a nested class.

615


Explain object slicing in c++?

588