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 / ram
main method cannot return any value.
| Is This Answer Correct ? | 6 Yes | 28 No |
Post New Answer View All Answers
What is vector pair in c++?
Explain what is oop?
which of the following is not an secondary constant a) array b) real c) union
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
What are the c++ access specifiers?
Can I learn c++ without knowing c?
How const int *ourpointer differs from int const *ourpointer?
What are the steps in the development cycle?
What is the latest c++ standard?
What is dev c++ used for?
Can we specify variable field width in a scanf() format string? If possible how?
Define vptr.
How many ways can a variable be initialized into in C++?
What is a class definition?
What is the latest c++ version?