Finish the program according to the requirements in the comments. Run the program and put the output in the end of the p

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Finish the program according to the requirements in the comments. Run the program and put the output in the end of the p

Post by answerhappygod »

Finish The Program According To The Requirements In The Comments Run The Program And Put The Output In The End Of The P 1
Finish The Program According To The Requirements In The Comments Run The Program And Put The Output In The End Of The P 1 (80.91 KiB) Viewed 20 times
Finish the program according to the requirements in the comments. Run the program and put the output in the end of the program in comments. #include<stdio.h> #include<string.h> struct Studenti char str[10]; int marks; }; int main() { int values [5] {5, 10, 15, 20, 22}; char str[10], *p; int n = 0, i; struct Student stu[20], *ps; = = strcpy(str, "UVWXYZ"); p = str; ); // print the third element in the array values using three different expressions. printf("%d %d %d\n", printf("%cfc\n", _); 1/print third char in str through str and p respectively printf("%s, %s\n", ); //print str string through str and p respectively 1 i . for (i 0; i < 20; i++) scanf("%s %d", // read student's name and marks if (stu.marks -1) break; } = i -1; // with the following two statements, print out the name and marks throught ps n printf("first student\'s name: %s, marks: %d\n". ps return 0; ps ); 3
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply