डाउनलोड पी.डी.एफ. ई-बुक्स
C - Pointer Of Multi Dimensional Array

विवरण :

कोई विवरण नहीं है |


सोर्स कोड :

#include <stdio.h>
#include <conio.h>

void main()
{
char num[2][2] = { {1, 2} , {3, 4} };

printf("address of num : %x
", num);
printf("address of num[0] : %x
", num[0]);
printf("address of num[0][0] : %x
", &num[0][0]);
printf("address of num[0][1] : %x
", &num[0][1]);
printf("address of num[1][0] : %x
", &num[1][0]);
printf("address of num[1][1] : %x
", &num[1][1]);

getch ();
}

आउटपुट :

address of num : 240ff5c
address of num[0] : 240ff5c
address of num[0][0] : 240ff5c
address of num[0][1] : 240ff5d
address of num[1][0] : 240ff5e
address of num[1][1] : 240ff5f