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 a tuple c++?

546


Write a program to interchange 2 variables without using the third one.

588


How do you find out if a linked-list has an end?

651


What is polymorphism in c++? Explain with an example?

607


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.

2288






Can I run c program in turbo c++?

580


What is ofstream c++?

589


How a new element can be added or pushed in a stack?

583


What is the identity function in c++? How is it useful?

553


What is the use of default constructor?

569


Why is standard template library used?

584


Differentiate between realloc() and free().

594


How can we access protected and private members of a class?

589


What is ostream in c++?

572


What is a Default constructor?

921