Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct p {
- char first_name[20];
- char second_name[20];
- };
- int main() {
- struct p person_1 = {"John", "Smith"};
- struct p person_2;
- scanf("%s", person_2.first_name);
- scanf("%s", person_2.second_name);
- printf("%s %s\n", person_1.first_name, person_1.second_name);
- printf("%s %s\n", person_2.first_name, person_2.second_name);
- return 0;
- }
Add Comment
Please, Sign In to add comment