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. #include #include 1. 2. 3. 4. student 5. 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>#include <stdio.h><br>#include <string.h><br>1.<br>2.<br>3.<br>4.<br>student<br>5.<br>char name[50];<br>int matric;<br>float CPA;<br>6.<br>7.<br>8.<br>9.<br>10.<br>11.<br>main()<br>{<br>// assigning a name of person1<br>person1.<br>12.<br>13.<br>14.<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. #include #include 1. 2. 3. 4. student 5. char name[50]; int matric; float CPA; 6. 7. 8. 9. 10. 11. main() { // assigning a name of person1 person1. 12. 13. 14. = "UTM"; 15. 16. // assigning values to the structure variable 17. matric 2033; 18. CPA = 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.

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here