#include<stdio.h>

main()

{

int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} };

int *p,*q;

p=&a[2][2][2];

*q=***a;

printf("%d----%d",*p,*q);

}

Answer Posted / susie

Answer :

SomeGarbageValue---1

Explanation:

p=&a[2][2][2] you declare only two 2D arrays,
but you are trying to access the third 2D(which you are not
declared) it will print garbage values. *q=***a starting
address of a is assigned integer pointer. Now q is pointing
to starting address of a. If you print *q, it will print
first element of 3D array.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3341


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2623


Develop a routine to reflect an object about an arbitrarily selected plane

3273


How to palindrom string in c language?

9771


What is data _null_? ,Explain with code when u need to use it in data step programming ?

3010






write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4385


how to test pierrot divisor

2457


How can you relate the function with the structure? Explain with an appropriate example.

3125


Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

2886


write a simple calculator c program to perform addition, subtraction, mul and div.

3382


write a program for area of circumference of shapes

2224


Design an implement of the inputs functions for event mode

3162


What is full form of PEPSI

2116


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

2124


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

3072