奇特的c代码

`#include <string.h>

include <stdlib.h>

include <stdio.h>

int func1(int a)
{
printf("haha a\n");
//printf("haha a=%d\n", 2);
a++;
return a;
}
class cla1
{
public:
int a1;
};

typedef char IsIncompleteType[2];

int main()
{
IsIncompleteType t1;
char chr[1] = {0};
int arr[2] = {0};
//char *pChr = chr;
//t1 = pChr;
*t1=262;
t1[1] = 64;
printf("t1 = %d\n", t1);
printf("t1 = %d\n", &t1);
printf("t1 = %d\n", *t1);
printf("t1 = %c\n", t1[2]);
*t1 = 1;
printf("t1 = %d\n", t1);
//printf("ss %d\n", sizeof(IsIncompleteType));
//int s;
//int
p=&s;
free(0);
return 0;
}`

posted @ 2023-12-18 09:29  hn_xs_zhongjx  阅读(7)  评论(0编辑  收藏  举报