#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];
}



#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=..

Answer / pratiksha21

answer is 6

Is This Answer Correct ?    9 Yes 0 No

Post New Answer

More OOPS Interview Questions

create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.

2 Answers   CTS, Delhi University,


Why multiple inheritance is not allowed?

0 Answers  


WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE??

21 Answers   Biocon, MIT, NIIT,


WAP to generate 2n+1 lines of the following pattern on the computer screen:

2 Answers  


What is the correct syntax for inheritance? 1) class aclass : public superclass 2) class aclass inherit superclass 3) class aclass <-superclass

6 Answers   Wipro,






what is difference between objects and function

1 Answers  


what is inline function?

3 Answers  


Have you ever used threads?

3 Answers   Adobe, IBM,


What is polymorphism and types?

0 Answers  


What do we mean by a hidden argument in a function?

1 Answers   TCL,


What is the purpose of polymorphism?

0 Answers  


which feature are not hold visual basic of oop?

0 Answers   Ignou,


Categories