What is going to be the output of the following program: # include int main(void
ID: 3578768 • Letter: W
Question
What is going to be the output of the following program: # include int main(void) {struct dob {int month; int day; int year;}; struct student {int sid; int yearOfAdmission; float currentGPA; struct dob bday; struct student stdnt = {123, 2015, 8.3, 11, 26, 1993}; printf(" Id is: %d ", stdnt.sid); printf("Year of admission is: %d ", stdnt.year OfAdmission); printf("Current GPA is: %.2f ", stdnt.currentGPA); printf("Date of Birth is: %d/%d/%d", stdnt. bday. month, stdnt. bday.day, stdnt. bday.} return 0;}Explanation / Answer
Answer:Given program executed sucessfully and the output of the program
Id is:2015
current GPA is:8.30
Date of birth is :112611
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.