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 / ram

main method cannot return any value.

Is This Answer Correct ?    6 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why cout is used in c++?

562


What is difference between class and structure in c++?

617


what are the events occur in intr activated on interrupt vector table

1176


What is decltype c++?

555


What is a stack c++?

567






What is c++ mutable?

700


What is the operator in c++?

623


How to access a variable of the structure?

583


What is a stack? How it can be implemented?

694


What is a manipulator in c++?

711


Specify some guidelines that should be followed while overloading operators?

615


What is object in c++ wikipedia?

568


Carry out conversion of one object of user-defined type to another?

605


why is c++ called oops? Explain

578


What is searching?

651