SHARE
TWEET

Untitled

a guest Dec 8th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. function();
  5. ausgeben();
  6.  
  7. struct Kunden
  8. {
  9.     char Name[20];
  10.     int alter;
  11. };
  12. typedef struct Kunden Kunden;
  13.  
  14. int main()
  15. {
  16.     Kunden kunde1[10];
  17.     function(&kunde1);
  18.     ausgeben(kunde1);
  19. }
  20.  
  21. int function(Kunden *pkunde[10])
  22. {
  23.     printf("Name:\n");
  24.     scanf("%s", pkunde[0]->Name);
  25.     printf("Alter:\n");
  26.     scanf("%d", &pkunde[0]->alter);
  27.     return 0;
  28. }
  29.  
  30. int ausgeben(Kunden pkunde1)
  31. {
  32.     printf("\n%s\n%d\n", pkunde1[0].Name, pkunde1[0].alter);
  33.     return 0;
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top