標(biāo)題:
++*a與*a++
[打印本頁]
作者:
卡爾文
時(shí)間:
2016-9-3 23:49
標(biāo)題:
++*a與*a++
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
void sort(int *a, int len)
{
printf("%d\n", sizeof(a));
while (len--) {
// printf("%d\n", *a++);
printf("%d\n", *(a++));
}
}
int main()
{
int a[4] = {235, 234, 2342, 2};
sort(a, 4);
}
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1