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 / ramesh kumar
in array we can must enter size integer...
not as variable type like i
thats why it gives an error
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
Can c++ do everything c can?
how to connect with oracle 9i with server in socket program in c/c++
What is the function to call to turn an ascii string into a long?
What is object in c++ wikipedia?
When should you use global variables?
Differentiate between a template class and class template in c++?
Do vectors start at 0?
How a macro differs from a template?
What is the latest c++ version?
Explain the register storage classes in c++.
Why is "using namespace std;" considered bad practice?
How the programmer of a class should decide whether to declare member function or a friend function?
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Is c++ low level?
Tell me difference between constant pointer and pointer to a constant.