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
What is string function c?
How can I avoid the abort, retry, fail messages?
How do you print an address?
What is the difference between procedural and declarative language?
What is the difference between far and near in c?
What extern c means?
Can we change the value of constant variable in c?
What is the difference between c and python?
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
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is the difference between fread and fwrite function?
What is the total generic pointer type?
Explain modulus operator.
Why enum is used in c?
What is external variable in c?