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
When should I use unitbuf flag?
How many different levels of pointers are there?
Mention the purpose of istream class?
Is c++ an oop?
What language does google use?
What is iterator c++?
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
Why is polymorphism useful?
Who created c++?
What are the differences between malloc() and calloc()?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
What is buffering in c++?
What is different in C++, compare with unix?
What is do..while loops structure?
When one must use recursion function? Mention what happens when recursion functions are declared inline?