#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 is destructor in oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is the renewal class?
Why is there no multiple inheritance?
What are the benefits of interface?
What is object and example?
What is the diamond problem in inheritance?
Which type does string inherit from?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What are objects in oop?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Can we override main method?
What is stream in oop?
hi all..i want to know oops concepts clearly can any1 explain??
What is oops with example?