- 2

Which compiler/editor do you guys use?

25th Jul 2022, 9:32 AM
Renz
7 Answers
+ 1
The code you provided prints 2 memory addresses. I fixed it to print 86 if that is what you needed. #include <iostream> using namespace std; int main() { int A[3][2] = {{3, 6}, {8, 4}, {7, 1}}; cout << A[1][0] << A[0][1] << endl; return 0; }
25th Jul 2022, 12:51 PM
Jaeger
Jaeger - avatar
0
What do you mean? Is your answer 86? But output is not 86 in your code..
25th Jul 2022, 12:02 PM
Jayakrishna 🇮🇳
0
Yes that's the answer in the challenge but that's not the code
25th Jul 2022, 10:12 PM
Renz
0
It was in a challenge with the question I provided and the answer 86
25th Jul 2022, 10:12 PM
Renz
0
Can you share the screen shot? if you are sure, report it via options..
26th Jul 2022, 9:16 AM
Jayakrishna 🇮🇳
0
Ok
26th Jul 2022, 11:07 AM
Renz
0
I copied it wrong
26th Jul 2022, 11:11 AM
Renz