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 / ravinder kumar(omnietysolution

Error in program

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the output of the following program? Why?

626


What is stoi in c++?

704


How would you use the functions randomize() and random()?

629


How should a contructor handle a failure?

690


What is pointer in c++ with example?

522






What is this pointer in c++?

736


What is the difference between cin.read() and cin.getline()?

563


Briefly describe a B+ tree. What is bulk loading in it?

807


What is the rule of three?

576


Why are arrays usually processed with for loop?

775


What is the difference between object-oriented programming and procedural programming?

700


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

618


What is a syntax in c++?

609


Write a Program for find and replace a character in a string.

556


Is c++ vector a linked list?

552