Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

In a gymnastic competition, scoring is based on the average
of all scores given by the judges excluding the maximum and
minimum scores.

Let the user input the number of judges, after that, input
the scores from the judges.

Output the average score.

Note: In case, more than two judges give the same score and
it happens that score is the maximum or minimum then just
eliminate two scores.

For example, if the number of judges is 5 and all of them
give 10 points each. Then the maximum and minimum score is
10. So the computation would be 10+10+10, this time.

The output should be 10 because 30/3 is 10.

No Answer is Posted For this Question
Be the First to Post Answer

More C Code Interview Questions

main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }

Program to Delete an element from a doubly linked list.

main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }

What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }

main() { int i = 0xff ; printf("\n%d", i<<2); } a. 4 b. 512 c. 1020 d. 1024

main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }

Find the largest number in a binary tree

1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.

How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

void main() { int i=5; printf("%d",i++ + ++i); }

Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

Categories