assume the program must insert 4 elements from the key board
and then do the following programs.sequential search(search
one of the elements),using insertion sort(sort the element)
and using selection sort(sort the element).
No Answer is Posted For this Question
Be the First to Post Answer
What's the full form of STL?
different types of castings
How compiler selects(internally) required overridden function in inheritance?
2 Answers CSC, Infinite Computer Solutions,
What is polymorphism? Explain with an example.
what is difference b/w object based and object oriented programming language?
18 Answers Chaitanya, College School Exams Tests, Educomp, IBM, Infosys, Telko,
What is overloading and its types?
what are abstract classes and how they impliment , with example
Why is destructor used?
What is abstraction?
#include <string.h> #include <stdio.h> #include <stdlib.h> #include<conio.h> void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort
What is encapsulation with real life example?
What is the purpose of enum?