Finish the program according to the requirements in the comments. Run the program and put the output in the end of the p
Posted: Fri Apr 29, 2022 6:55 am
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