各位前辈,我想看这几种变量的字节数,打印出来的地址都是相差4个字节,请问问题出在哪?谢谢你们!
各位前辈,我想看这几种变量的字节数,打印出来的地址都是相差4个字节,请问问题出在哪?谢谢你们!#include"stdio.h"
main()
{
int x=64;
float y=44.23l;
char ch='K';
int j=125;
printf("the value of x is %d,the add of x is %u\n",ch,&ch);
printf("the value of y is %f,the add of y is %u\n",y,&y);
printf("the value of x is %d,the add of ch is %u\n",ch,&ch);
printf("the value of x is %d,the add of j is %u\n",j,&j);
}