C
This commit is contained in:
15
learnc/learnc9.c
Executable file
15
learnc/learnc9.c
Executable file
@ -0,0 +1,15 @@
|
||||
#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);
|
||||
}
|
Reference in New Issue
Block a user