#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

Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1 Answers  


Can bst contain duplicates?

0 Answers  


can you give the dynamic polymorphism types?

2 Answers   Wipro,


wht is major diff b/w c and c++?

10 Answers  


how to create thread in java?

17 Answers   IBM, Infosys, Wipro,






I hv a same function name,arguments in both base class and dervied class, but the return type is different. Can we call this as a function overloading? Explain?

3 Answers  


write a programe to calculate the simple intrest and compund intrest using by function overlading

0 Answers  


how to swap the variables without using temp and operators

1 Answers  


what is object slicing

3 Answers   TCS,


What are the main differences between procedure oriented languages and object oriented languages?

9 Answers   IBM, Infosys, Wipro,


Why a "operator=(...)" when there is a copy ctor?

2 Answers  


what is the need of abstraction? what is abstraction?what is the abstraction for stack?

8 Answers   CTS, Verizon,


Categories