the struct of c lauguage test code
Posted lindar1
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了the struct of c lauguage test code相关的知识,希望对你有一定的参考价值。
#include <stdio.h>
typedef struct i
{
int a;
char b;
double c;
}u;
int main()
{ u j; //the struct define 1.
struct i k; //the struct define 1.
j.a=1;
k.b=3;
printf("%d ",j.a);
printf("%d ",k.b );
typedef struct i
{
int a;
char b;
double c;
}u;
int main()
{ u j; //the struct define 1.
struct i k; //the struct define 1.
j.a=1;
k.b=3;
printf("%d ",j.a);
printf("%d ",k.b );
/* the end of run is 1and 3 */
以上是关于the struct of c lauguage test code的主要内容,如果未能解决你的问题,请参考以下文章
报错storage size of ‘act’ isn’t known当使用std=c99编译struct sigaction
ZOJ 2110 C - Tempter of the Bone