The following C program which involves struct requires you to fill in the blank with the correct C code as formatting shown in Table 2. 1. #include 2. #include 3. 4. student { char name[50]; int...


The following C program which involves struct requires you to fill in the blank with the correct<br>C code as formatting shown in Table 2.<br>1.<br>#include <stdio.h><br>2.<br>#include <string.h><br>3.<br>4.<br>student<br>{<br>char name[50];<br>int matric;<br>5.<br>7.<br>8.<br>float CPA;<br>9.<br>10.<br>11.<br>main()<br>{<br>// assigning a name of person1<br>12.<br>13.<br>14.<br>person1.<br>=

Extracted text: The following C program which involves struct requires you to fill in the blank with the correct C code as formatting shown in Table 2. 1. #include 2. #include 3. 4. student { char name[50]; int matric; 5. 7. 8. float CPA; 9. 10. 11. main() { // assigning a name of person1 12. 13. 14. person1. = "UTM"; 15. // assigning values to the structure variable matric = 2033; 16. 17. 18. СРА %3 3.98; 19. // display the struct variables printf("Name: %s\n", printf("Matric No.: %d\n", printf("CPA: %.2f", 20. 21. ); 22. ); 23. 24. 25. return 0; } | 26. rinmgvi

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here