diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-18 06:44:15 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-02-18 06:44:15 +0000 |
commit | 4d29f20498d1c663f70b160a6cbdcbb94feb58bb (patch) | |
tree | 42dd85215c4df722fa1112d112ead229ff172a91 | |
parent | 8b4d0e991004f55d53363a77dd0670b05f0f4e1f (diff) |
Sat, Feb 17, 2024, 10:44 PM -08:00
-rw-r--r-- | wk3/sect/candidate.c (renamed from wk3/sect/structs.c) | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/wk3/sect/structs.c b/wk3/sect/candidate.c index 59a1c07..120537f 100644 --- a/wk3/sect/structs.c +++ b/wk3/sect/candidate.c @@ -4,16 +4,18 @@ #include <stdlib.h> #include <string.h> -int main(void) {} - - -/* typedef struct { string name; int votes; } candidate; -candidate president; -president.name = "Alyssa"; -president.votes = 10; +int main(void) { + candidate president; + president.name = "Alyssa"; + president.votes = 10; +} + + +/* + */ |