#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
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
How do you explain polymorphism?
Advantage and disadvantage of routing in telecom sector
What is abstraction in oop with example?
How does polymorphism work?
How do you define a class in oop?
What are the 4 pillars of oop?
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?
What is methods in oop?
What is encapsulation oop?
What is a superclass in oop?
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.
what is difference between class template and template class?
What is oops with example?
What is polymorphism in oops with example?