The Gateway to Computer Science Excellence

test-series [closed]

0 votes
41 views

#include<stdio.h>

int main()

{

char A[5][7][6];

char *p[5][7][6];

printf("%d\t", (unsigned)(A+1)-(unsigned)A);

printf("%d", (unsigned)(p+1)-(unsigned)p);

}

  1. 42  42
  2. 1  1
  3. 42  336
  4. 336  42
closed as a duplicate of: Multidimensional Pointer Arithmetic
in Programming by Boss (10.8k points)
closed by | 41 views
0
there is pointer to 3D array but here p is a 3D array of char pointer type,both questions are diffrent
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
50,737 questions
57,297 answers
198,265 comments
104,977 users