1. 程式人生 > >c語言的指標和型別大小示例

c語言的指標和型別大小示例

#include <stdio.h>

int main()
{
        long *testLong;
        printf("%d\n",testLong);
        long *previous=testLong;
        testLong++;
        printf("%d\n",testLong);
        printf("%d\n",testLong-previous);
         printf("%d\n",&testLong-&previous);
         return 0;
         
}

輸出
0
8
1
1