Is data hiding and abstraction same?
No Answer is Posted For this Question
Be the First to Post Answer
What are the benefits of interface?
What is for loop and its syntax?
What is the difference between declaration and definition?
What is polymorphism in oops?
Why do we use class in oops?
What is a superclass in oop?
Why and when is a virtual destructor needed?
wht is ditch
What is oops and why we use oops?
How compiler selects(internally) required overridden function in inheritance?
2 Answers CSC, Infinite Computer Solutions,
#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
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?