WAP to find the largest and second largest element in an array.

Here is your code in C - #include <stdio.h> int main() { int a[6], i, l1, l2; printf ("Enter the elements of array: "); for (i=0; i<6; i++) { scanf("%d", &a[i]); } l1 = a[0]; l2= a[0]; for (i=0; i<6; i++) { if (l1<a[i]){ l2 = l1; l1 = a[i]; } if (l2<a[i] && a[i]!=l1) l2 = a[i]...