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 / vikas
Index variable of any array should be integer constant.
but in this case i is not constant so it is a error
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Can I run c program in turbo c++?
What is c++ and its uses?
What is the hardest coding language to learn?
Explain what is polymorphism in c++?
What is the type of 'this' pointer? When does it get created?
What is the use of "new" operator?
Is vector a class in c++?
What is time h in c++?
What is meant by the term name mangling in c++?
By using c++ with an example describe linked list?
Which sort does c++ use?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
When are exception objects created?
Explain about vectors in c ++?
What is command line arguments in C++? What are its uses? Where we have to use this?