#include
#include
/*
int main(void)
{
enum workday{sun,mon,tue,wed,thu,fri,sat};
enum workday foo;
foo = mon;
printf("The value is %d\n",foo);
return 0;
}
*/
/*
int main(void)
{
enum {sun, mon,tue,wed,thu,fri,sat} workey;
workey = tue;
printf("The value is %d\n",workey);
return 0;
}
*/
/*
int main(void)
{
typedef enum workey{sun, mon,tue,wed,thu,fri,sat} ;
workey foo;
foo = tue;
printf("The value is %d\n",foo);
return 0;
}
*/
/*
int main()
{
char * pstr = "hello world";
printf("the %d ... %d\n",strlen(pstr),strlen("justfor"));
return 0;
}
*/
int main()
{
char * pstr = "hello world";
char array[] = "1234";
printf("the %d ... %d\n",sizeof(pstr),sizeof("justfor"));
printf("the 2--> %d ... %d\n",sizeof(array));
return 0;
}
阅读(891) | 评论(0) | 转发(0) |