anon20016

10

Jan 12th, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. struct file{
  6. char name[10];
  7. int size;
  8. };
  9.  
  10. int main()
  11. {
  12. struct file c;
  13. scanf("%s %d", c.name, &c.size);
  14.  
  15. printf("Filename = %s\nSize = %d", c.name, c.size);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment