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

What is else if syntax?

905


Is there a c++ certification?

805


What are single and multiple inheritances in c++?

792


Explain function overloading

807


Why do you use the namespace feature?

889


What is extern c++?

750


How to tokenize a string in c++?

815


When must you use a pointer rather than a reference?

824


Write a program to find the Fibonacci series recursively.

852


Difference between pointer to constant vs. Pointer constant

840


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

2019


Is atoi safe?

835


Should I learn c or c++ or c#?

769


Why is null pointer used?

911


What is struct c++?

773