facts about c++

Constructorconstructor is a special type of function or method in which there is No return type(Even void) and constructor name will be same as the name of the class.There are two types of constructor1.default constructor2.parameterised constructorPassing Objects as...

c programming for bubble sort

#include<stdio.h>void selection_sort(int arr[],int num);int main(){int arr[100],num,i;printf(“Enter the size of arrayn”);scanf(“%d”,&num);printf(“nEnter the elements in array one by...

c programming for bubble sort

#include<stdio.h>void bubble_sort(int [],int num);int main(){int arr[100],num,i;printf(“n Enter the size of the arrayn”);scanf(“%d”,&num);printf(“n Enter the elements in the array one by...