Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- problem 1 on the worksheet-- when passing by pointers, the variables remain in scope so to speak so their values are changed
- A struct is sorta like an object in python or something but not really it's basically just a bucket of crap
- see lsn6.c
- pass pointers to structs-- printf("Name: %s\n", (*stu).name);
- alternatively use the arrow-- printf("Name: %s\n", stu->name);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement