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 / sachinmundhra
This will not get compile.
int i , a[i] ; // This statement will given error. Constant
expression required.
Is This Answer Correct ? | 38 Yes | 3 No |
Post New Answer View All Answers
What are the benefits of c++?
why is c++ called oops? Explain
Does c++ have foreach?
What is an html tag?
Explain the advantages of using friend classes.
When do you call copy constructors?
What are the unique features of C++.
When does a 'this' pointer get created?
Explain the use of vtable.
Difference between pointer to constant and constant pointer to a constant. Give example.
Discuss the possibilities related to the termination of a program before entering the mainq method?
What methods can be overridden in java?
Is it possible to have a recursive inline function in c++?
What is a loop? What are different types of loops in c++?
Which is the best c++ compiler?