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
Explain how do you generate random numbers in c?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is the 'named constructor idiom'?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
How to write a multi-statement macro?
What does volatile do?
What is a static function in c?
What is mean by data types in c?
What does the && operator do in a program code?
What is difference between stdio h and conio h?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What does the c preprocessor do?
What is pre-emptive data structure and explain it with example?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????