How does selection sort work in c?
Answer / Akhilesh Saraswat
"Selection Sort is a simple sorting algorithm that works by repeatedly finding the minimum element from the unsorted part of the array and putting it at the beginning. Here's a simple implementation in C:"
| Is This Answer Correct ? | 0 Yes | 0 No |
print 1-50 with two loop & two print Statement
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Write a program of advanced Fibonacci series.
write a c program to print the values in words eg:- 143 written it has (one hundred and forty three)& 104, 114 are also written words
5 Answers Captronic, DELL, Google, IBM, Mithi, RCC, Wipro,
Differentiate between a for loop and a while loop? What are it uses?
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
How would you use the functions fseek(), freed(), fwrite() and ftell()?
1 Answers Aspire, Infogain, TISL,
The statement, int(*x[]) () what does in indicate?
how to swap two integers 1 and 32767 without using third variable
Explain what is a 'locale'?
Is c compiled or interpreted?
differnce between do and do while