Question: Write a C program to print the sum of marks of a student using pointers on an array. - Declare a pointer variable and assign

Write a C program to print the sum of marks of a
Write a C program to print the sum of marks of a student using pointers on an array. - Declare a pointer variable and assign the pointer pointing to the array. - Declare the student name in the program itself or get the input from the user. - Get the number of courses of the student that you want to sum up. You can assign the value of this integer variable in the program itself or you can get this from the user. - Declare an array and initialize the array elements. The array elements are the marks of a student in various courses. Add up the mark of all the courses one by one and print the sum of the marks that a student has obtained

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Law Questions!