Menu

saurabhnissa Archive

How to create a program Generic bubble sort in C

Generic bubble sort in C Today we Learn about sorting technique in  C for example:- How to create a Generic Bubble sort in C. How to create a Generic Bubble Sorting in C    #include <iostream> using namespace std; template <class X> void bubble(X *data, intsize) { register inta, b; X t; for(a=1; a <

C Program to Check Palindrome number in C

C Program to Check Palindrome Palindrome:- An integer is a palindrome number if the reverse of that number is equal to the original number. That is called a palindrome number. C Program to Check Palindrome number Palindrome number in c #include <stdio.h> int main() { int n, reversedN = 0, remainder, originalN; printf(“Enter an integer:

Example of Inheritance program in c++ with explanation

Inheritance program in c++ A simple example of the Inheritance program in c++ with output. And a full explanation of every statement. Example of inheritance program #include <iostream> using namespace std; class BaseClass { int i; public: void setInt(int n); int getInt(); }; class DerivedClass : public BaseClass { int j; public: void setJ(int n);
Learn For Free.