Created
April 18, 2022 08:42
-
-
Save Cvar1984/05bade83e5cb8d0d0b130d98dbcedf79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
typedef struct Man { | |
int age; | |
char *name; | |
} Man; | |
int main() | |
{ | |
struct Man temp; | |
struct Man *person = &temp; | |
person->age = 21; | |
person->name = "foo baar"; | |
printf("person name: %s\nperson age: %d\n", person->name, person->age); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment