What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-18 00:40:03
huffman coding using heap in c
// Huffman Coding in C #include <stdio.h> #include <stdlib.h> #define MAX_TREE_HT 50 struct MinHNode { char item; unsigned freq; struct MinHNode *left, *right; }; struct MinHeap { unsigned size; unsigned capacity; struct MinHNo... Add solution -
Other 2021-09-17 22:01:03
c program to find divisors of a number
#include <stdio.h> void main() { int x, i; printf("\nInput an integer: "); scanf("%d", &x); printf("All the divisor of %d are: ", x); for(i = 1; i <= x; i++) { if((x%i) == 0) {... Add solution -
C 2021-09-17 14:15:01
c program to find the sum of given number using recursion
# include <stdio.h> int sum(int number); int main { int n; int a; printf("enter a number"); scanf("%d,&n); a=sum(n); printf("sum=%d",a); } int sum(int number) { if (number==0) return 0; return(number%10+su... Add solution -
TypeScript 2021-09-17 12:54:02
Write a C program to count total number of duplicate elements in an array.
/** * C program to count total number of duplicate elements in an array */ #include <stdio.h> #define MAX_SIZE 100 // Maximum array size int main() { int arr[MAX_SIZE]; int i, j, size, count = 0; /* Input size of array */ prin... Add solution -
C 2021-09-16 15:31:03
multiplication table using c
#include <stdio.h> int main(){ //declaring variables int n,i,a,start,end; //taking and printing the instructions printf("Enter first number from where you want to start multiplication : \n"); scanf("%d",&sta... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5