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 / sachinmundhra
This will not get compile.
int i , a[i] ; // This statement will given error. Constant
expression required.
| Is This Answer Correct ? | 38 Yes | 3 No |
Post New Answer View All Answers
Is map ordered c++?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
Why use of template is better than a base class?
Explain the difference between struct and class in terms of access modifier.
How one would use switch in a program?
Is c++ a high level language?
Why is it necessary to use a reference in the argument to the copy constructor?
When should overload new operator on a global basis or a class basis?
Write a program using display() function which takes two arguments.
How const int *ourpointer differs from int const *ourpointer?
How do I make turbo c++ full screen?
What is the limitation of cin while taking input for character array?
What is the difference between a type-specific template friend class and a general template friend class?
What is pointer in c++ with example?