#include <iostream>
using namespace std;
int main() {
int a = 2;
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][c[1][4]];
}
Answer Posted / bhavana
c[2][4]=8
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What do you mean by Encapsulation?
what is graphics
What is the problem with multiple inheritance?
What is methods in oop?
Why multiple inheritance is not allowed?
any one please tell me the purpose of operator overloading
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is the significance of classes in oop?
program for insertion ,deletion,sorting in double link list
What is the real time example of inheritance?
Whats oop mean?
Can we create object of abstract class?
to find out the minimum of two integer number of two different classes using friend function
Which is not an object oriented programming language?
What is solid in oops?