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
what are the iterator and generic algorithms.
Why do we use double in c++?
How do you declare a set in c++?
How do I download c++?
Write about all the implicit member functions of a class?
Does c++ cost money?
How do we implement inheritance in c++?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
Why do we use classes in programming?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
Which c++ operator cannot overload?
Explain binary search.
What is atoi in c++?
What is stoi in c++?
an operation between an integer and real always yeilds a) integer result b) real result c) float result