C语言:结构体地址
#include <stdio.h> main() { struct student{ char no[7]; char name[8]; int score; }; struct student st1,st2; //printf("%d\n",&student); printf("%d %d %d %d %d\n",&st1,&st1.no,&st1.no[2],&st1.name,&st1.score); printf("%d %d %d %d %d\n",&st2,&st2.no,&st2.no[2],&st2.name,&st2.score); printf("%x %x %x %x %x\n",&st1,&st1.no,&st1.no[2],&st1.name,&st1.score); printf("%x %x %x %x %x\n",&st2,&st2.no,&st2.no[2],&st2.name,&st2.score); getchar(); }