Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find the kth smallest element in the given list of
array elemnts.

Answer Posted / shil

#include <stdio.h>
#include<conio.h>
main()
{
int a[20], i,n;
printf("ent how many elements u want to enter");
scanf("%d",&n);
printf("enter the elements");
for(i=1;i<=n;i++)
scanf("%d",&a[i]));
s=a[1];
for(i=2;i<=n;i++)
{
if
{
s>a[i]
s=a[i]
}
}
printf("the smallest element is %d",s);
}

hope this correct if it is wrong plz let me know

Is This Answer Correct ?    19 Yes 60 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the usage of the pointer in c?

1043


What is selection sort in c?

1018


What is difference between stdio h and conio h?

1325


What the advantages of using Unions?

1164


What do you mean by Recursion Function?

1070


What is the size of array float a(10)?

1092


Explain the use of fflush() function?

1025


Is null always equal to 0(zero)?

990


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

1038


What is dynamic variable in c?

986


How are structure passing and returning implemented?

985


What is pointer to pointer in c language?

1050


What does typeof return in c?

1019


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1070


What is malloc() function?

1097