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
Write about the various sections of the executable image?
Explain register storage specifier.
You want to link a c++ program to c functions. How would you do it?
Is linux written in c or c++?
What is the cout in c++?
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
Describe friend function & its advantages.
How do you add an element to a set in c++?
What is an adjust field format flag?
What is the difference between #import and #include?
Can turbo c++ run c program?
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
Do you need a main function in c++?
What are stacks?
What is called array?