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


Please Help Members By Posting Answers For Below Questions

What is main function in c++ with example?

572


What is scope in c++ with example?

644


How can I learn c++ easily?

632


Do you know the use of vtable?

643


What is an overflow error?

629






Can I run c program in turbo c++?

588


Which format specifier is used for printing a pointer value?

586


Do you know what is overriding?

626


Difference between overloading vs. Overriding

594


What is c++ and its uses?

630


What is type of 'this' pointer?

603


What is recursion?

668


What are guid? Why does com need guids?

577


What are the different types of comments allowed in c++?

583


What are the comments in c++?

578