15 lines
232 B
C
Executable File
15 lines
232 B
C
Executable File
#include <stdio.h>
|
|
|
|
typedef struct {
|
|
char * name;
|
|
int age;
|
|
} person;
|
|
|
|
int main() {
|
|
person john;
|
|
|
|
/* testing code */
|
|
john.name = "John";
|
|
john.age = 27;
|
|
printf("%s is %d years old.", john.name, john.age);
|
|
} |