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


Please Help Members By Posting Answers For Below Questions

what are the iterator and generic algorithms.

1484


Why do we use double in c++?

601


How do you declare a set in c++?

536


How do I download c++?

573


Write about all the implicit member functions of a class?

598






Does c++ cost money?

582


How do we implement inheritance in c++?

584


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)

1486


Why do we use classes in programming?

576


What type of question are asked in GE code writing test based on c++ data structures and pointers?

3510


Which c++ operator cannot overload?

551


Explain binary search.

576


What is atoi in c++?

567


What is stoi in c++?

700


an operation between an integer and real always yeilds a) integer result b) real result c) float result

712