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
Difference between delete and free.
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
What does floor mean in c++?
Explain the extern storage classes in c++.
Explain linked list using c++ with an example?
Why do we need constructors in c++?
Can a Structure contain a Pointer to itself?
Write about the role of c++ in the tradeoff of safety vs. Usability?
How would you obtain segment and offset addresses from a far address of a memory location?
What's the "software peter principleā?
What is cin clear () in c++?
What is rvalue?
Out of fgets() and gets() which function is safe to use and why?
You run a shell on unix system. How would you tell which shell are you running?
Define a constructor?