fork(1) download
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<string.h>
  4.  
  5. char job[][50] = {
  6. "Brain Surgeon",
  7. "GM of Sports Team",
  8. "Real Estate Agent",
  9. "Nurse",
  10. "Teacher",
  11. "Lawyer",
  12. "News Reporter",
  13. "Scientist",
  14. "Accountant",
  15. "Vice President",
  16. "Congressman",
  17. "Sports Player",
  18. };
  19.  
  20. char first_name;
  21. int player_cash[3];
  22. char last_name;
  23.  
  24. struct job {
  25. char job_description;
  26. float paycheck;
  27. };
  28.  
  29. int main()
  30. {
  31. printf("Hello! You have been born into this world under the name of %c, %c!", last_name, first_name);
  32. scanf("%10s, %10s", &first_name, &last_name);
  33. return 0;
  34. }
Success #stdin #stdout 0.02s 1680KB
stdin
Brandon Damante
stdout
Hello! You have been born into this world under the name of , !