Awesome q2a theme
0 votes
10 views
#include <iostream>
using namespace std;
int main() {
        int a[3][4][2] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
        printf("%d", *((*(a+2)-3))[2]);

        return 0;

}

How the output of this code coming out to be 15.

Can someone please explain this?

in Programming by (33 points) | 10 views

Please log in or register to answer this question.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
9,270 questions
3,204 answers
14,751 comments
96,304 users