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


Please Help Members By Posting Answers For Below Questions

Why is "using namespace std;" considered bad practice?

854


Explain what happens when a pointer is deleted twice?

1009


write a programme to get a character and thier ASCII value

2802


Which field is used in c++?

827


What is the arrow operator in c++?

766


How do you find out if a linked-list has an end?

849


What is the difference between an external iterator and an internal iterator?

854


why is iostream::eof inside a loop condition considered wrong?

825


Why struct is used in c++?

819


What is the difference between cin.read() and cin.getline()?

825


Why ctype h is used in c++?

712


What is the need of a destructor?

871


What do you mean by vtable and vptr in c++?

812


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

810


What is setf in c++?

835