


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
It is one type of data structure. we are using this concept in c language.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Enter a Number:
Want to Continue[y/n]: y
Enter a Number: 34
Want to Continue[y/n]: y
Enter a Number: 44
Want to Continue[y/n]: n
The Values of the Linked list are:
24 34 44
float f=0,i; for(i=0;i<n;i++) { f=f+(p); p++; } return (f/n); } void main() { int a[10],i,p; float avg; printf("Enter the no. of Subject: "); scanf("%d",&n); for(i=0;i<n;i++) { printf("Enter the Subject-%d Marks= ",i+1); scanf("%d",&a[i]); } p=a; avg=average(p); printf("the average marks = %f",avg); }