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 / mohammed afroz

There are compile time error in this program. Because array
can declare with a constant value.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can manipulators fall in love?

564


Can a program run without main in c++?

586


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

553


Define pre-condition and post-condition to a member function in c++?

661


What is increment operator in c++?

560






How do you declare A pointer to function which receives an int pointer and returns a float pointer

677


What is doubly linked list in c++?

632


what is C++ exceptional handling?

629


Do you know about latest advancements in C++ ?

658


How to allocate memory dynamically for a reference?

544


What is a far pointer? where we use it?

613


Can you please explain the difference between using macro and inline functions?

529


Why main function is special in c++?

667


When should we use multiple inheritance?

617


How can a called function determine the number of arguments that have been passed to it?

655