fork download
  1. #include<stdio.h>
  2. struct patient_test
  3. {
  4. int fees;
  5. char name[10];
  6. char result[10];
  7. }t1;
  8. int main()
  9. {
  10. t1.fees = 400;
  11. strcpy(t1.name,"Jack");
  12. strcpy(t1.result,"Positive");
  13. printf("The fees of test is %d\n",t1.fees);
  14. printf("The name of test is %s\n",t1.name);
  15. printf("The result of test is %s\n",t1.result);
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
The fees of test is 400
The name of test is Jack
The result of test is Positive