#include <iostream>
using namespace std;
int main() {
int a = 3;
int c[5][5];
for (int x=0;x<5;x++) {
for (int y=0;y<5;y++) {
c[x][y] = x*y;
}
}
cout << c[a][2];
}

Answer Posted / pratiksha21

answer is 6

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a superclass in oop?

673


write a programe to calculate the simple intrest and compund intrest using by function overlading

1672


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1461


What is the advantage of oop over procedural language?

630


Why is oop useful?

605






Why is polymorphism needed?

605


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1639


What are the three parts of a simple empty class?

1462


What is use of overloading?

612


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1784


to find out the minimum of two integer number of two different classes using friend function

1645


Why is oop better than procedural?

606


How do you answer polymorphism?

580


hi all..i want to know oops concepts clearly can any1 explain??

1684


Which language is not a true object oriented programming language?

646