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
Can manipulators fall in love?
Can a program run without main in c++?
What is the identity function in c++? How is it useful?
Define pre-condition and post-condition to a member function in c++?
What is increment operator in c++?
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What is doubly linked list in c++?
what is C++ exceptional handling?
Do you know about latest advancements in C++ ?
How to allocate memory dynamically for a reference?
What is a far pointer? where we use it?
Can you please explain the difference between using macro and inline functions?
Why main function is special in c++?
When should we use multiple inheritance?
How can a called function determine the number of arguments that have been passed to it?