#include <stdio.h>
static int a = 10;
void func()
{
int i = 0;
static int j = 0;
i++;
j++;
printf ("i = %d, j = %d\n", i, j);
}
int main()
{
int i = 0;
for (i = 0; i < 10; i++)
{
func();
}
return 0;
}
#include <stdio.h>
int main1()
{
int const a = 10;
printf ("%d\n", a);
return 0;
}
int main()
{
int a = 10;
int const *p = &a;
p++;
int * const p1 = &a;
*p1 = 20;
const int * const p2 = &a;
return 0;
}
#include <stdio.h>
typedef int INT;
typedef int ARR[20];
typedef int * PINT;
struct student
{
int id;
char name[20];
};
typedef struct student STU;
typedef struct _node
{
int data;
char ch;
}Node;
typedef Node * PNode;
typedef void (*PFUNC)(int, char**);
void myMain(int count, char **argv)
{
}
PFUNC p = myMain;
void func(PFUNC p)
{
}
int main()
{
struct student stu;
STU stu1;
Node node;
PNode pnode;
printf ("pnode = %d\n", sizeof(pnode));
return 0;
}
int main1()
{
int a,b;
INT c,d;
ARR a1, a2;
printf ("a1 = %d, a2 = %d\n", sizeof(a1), sizeof(a2));
PINT p1, p2;
return 0;
}