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 is main function in c++ with example?
What is scope in c++ with example?
How can I learn c++ easily?
Do you know the use of vtable?
What is an overflow error?
Can I run c program in turbo c++?
Which format specifier is used for printing a pointer value?
Do you know what is overriding?
Difference between overloading vs. Overriding
What is c++ and its uses?
What is type of 'this' pointer?
What is recursion?
What are guid? Why does com need guids?
What are the different types of comments allowed in c++?
What are the comments in c++?