Question: this is c language based question. considering it a long question. please can you provide solution to this Question 12 (3 points) 1. int main()
Question 12 (3 points) 1. int main() { 2 Student studenti; puts("Enter Student name"); 4 scanf("%s", studenti.name); 5 while ((getchar()) != ' ') {} 6 puts("Enter Student ID"); 7 scanf("%d", &student1.stID); 8 puts("Enter Student's semester fee"); 9 scanf("%d", &studenti. semesterfee); 10 puts("Enter Student's dues"); 11 scanf("%f", estudent1.dues); 12 printf("%20s%15d%20d%10.2f ", studenti.name, studenti.stID, 13 student 1. semesterfee, student1.dues); 14 15 Given the above main function write code to dynamically allocate memory for a student and assign all its numeric data with random values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
