include stdio struct foobar int INT float FLOAT char STRING int main i

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
struct foobar
{
int INT;
float FLOAT;
char * STRING;
};
int main (int argc, char **argv)
{
struct foobar s = { INT: 1,
FLOAT: 1.f,
STRING: "one" };
printf ("%s\n", s.STRING);
return 0;
}