Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- struct file{
- char name[10];
- int size;
- };
- int main()
- {
- struct file c;
- scanf("%s %d", c.name, &c.size);
- printf("Filename = %s\nSize = %d", c.name, c.size);
- }
Advertisement
Add Comment
Please, Sign In to add comment