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 / ramesh kumar

in array we can must enter size integer...
not as variable type like i
thats why it gives an error

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are disadvantages of pointers?

547


What is the meaning of c++?

514


What is class definition in c++ ?

591


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

582


What is stl containers in c++?

557






what is oops and list its features in c++?

526


What is const pointer and const reference?

564


What are stacks?

579


What is an incomplete type in c++?

739


What is a .h file c++?

505


What is purpose of abstract class?

561


When is dynamic checking necessary?

566


How are virtual functions implemented in c++?

572


What is the difference between public and private data members?

638


What is the main use of c++?

529