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
What are disadvantages of pointers?
What is the meaning of c++?
What is class definition in c++ ?
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
What is stl containers in c++?
what is oops and list its features in c++?
What is const pointer and const reference?
What are stacks?
What is an incomplete type in c++?
What is a .h file c++?
What is purpose of abstract class?
When is dynamic checking necessary?
How are virtual functions implemented in c++?
What is the difference between public and private data members?
What is the main use of c++?