program to find a smallest number in an array

Answer Posted / subash

&a[i]);
i=0;
for(int j=0;j<n-1;j++)
{
if(a[j+1]<a[j])
{
temp=a[j+1];
a[j+1]=a[j];
a[j]=temp;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string function c?

569


How can I avoid the abort, retry, fail messages?

664


How do you print an address?

749


What is the difference between procedural and declarative language?

655


What is the difference between far and near in c?

604






What extern c means?

546


Can we change the value of constant variable in c?

579


What is the difference between c and python?

587


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

680


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

660


What is the difference between fread and fwrite function?

641


What is the total generic pointer type?

729


Explain modulus operator.

598


Why enum is used in c?

526


What is external variable in c?

614