Saved Bookmarks
| 1. |
C program to find the difference between the largest and smallest element of an array |
|
Answer» Explanation: Iterative program to find the smallest and LARGEST elements in an array / C program to find the smallest and largest element in an array. int MAIN() { PRINTF(“\nEnter the number of elements : “); SCANF(“%d”,&N); printf(“\nInput the array elements : “); ... scanf(“%d”,&a[i]); ... large=small=a[0]; ... for(i=1;i large=a[i]; |
|