#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

Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3827


How do you explain polymorphism?

590


Advantage and disadvantage of routing in telecom sector

786


What is abstraction in oop with example?

644


How does polymorphism work?

635






How do you define a class in oop?

628


What are the 4 pillars of oop?

670


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1393


What is methods in oop?

540


What is encapsulation oop?

575


What is a superclass in oop?

667


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6485


what is difference between class template and template class?

2157


What is oops with example?

564


What is polymorphism in oops with example?

528