find largest element in array w/o using sorting techniques.
Answer Posted / manjunath
#include<stdio.h>
void main()
{
int a,b[4]={3,2,7,4,9};
a[0]=b[0];
for(i=1;i<5;i++)
{
if(a<b[i])
{
a=b[i];
}
}
printf("the largest num is %d",a);
}
Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
What is main function in c?
What is file in c preprocessor?
Write a program to identify if a given binary tree is balanced or not.
What is ambagious result in C? explain with an example.
What is break in c?
What is the function of volatile in c language?
Is linux written in c?
Define the scope of static variables.
Why static is used in c?
What are the functions to open and close the file in c language?
What is character set?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
What functions are in conio h?
What is c programming structure?
What is the size of enum in c?