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
How many levels of indirection in pointers can you have in a single declaration?
Tell me with an example the self-referential structure?
How main function is called in c?
What is function prototype in c with example?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
How can I handle floating-point exceptions gracefully?
Write the syntax and purpose of a switch statement in C.
What is c programming structure?
How do we open a binary file in Read/Write mode in C?
What is a macro?
Can you tell me how to check whether a linked list is circular?
Why we use conio h in c?
What are the general description for loop statement and available loop types in c?
what is reason of your company position's in india no. 1.
Explain what is a pragma?