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
What is else if syntax?
Is there a c++ certification?
What are single and multiple inheritances in c++?
Explain function overloading
Why do you use the namespace feature?
What is extern c++?
How to tokenize a string in c++?
When must you use a pointer rather than a reference?
Write a program to find the Fibonacci series recursively.
Difference between pointer to constant vs. Pointer constant
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?
Is atoi safe?
Should I learn c or c++ or c#?
Why is null pointer used?
What is struct c++?