1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include<stdio.h>
#include<stdlib.h>
#define size 10
int main() {
int a[3] = { 11, 22, 33 };
printf("\n a[0] ,value=%d : address=%u", a[0], &a[0]);
printf("\n a[1] ,value=%d : address=%u", a[1], &a[1]);
printf("\n a[2] ,value=%d : address=%u", a[2], &a[2]);
return (0);
}
|
1
2
3
|
a[0] ,value=11 : address=2358832
a[1] ,value=22 : address=2358836
a[2] ,value=33 : address=2358840
|
No comments:
Post a Comment