Tag: code

25
Jan

C program to find sum of integers between 101 to 200 whose individual digits are prime in nature

#include<stdio.h> #include<conio.h> void main() { int i=102, j, k; int sum = 0, digitsum; int prime;…

25
Jan

C program for list implementation using array

#include<stdio.h> #include<conio.h> #define MAX 20 //maximum no of elements in the list //user defined datatypes struct…

25
Jan

C program for list implementation using linked list

#include<stdio.h> #include<stlib.h> #include<conio.h> struct node; typedef struct node *ptr; typedef ptr list; typedef ptr position; typedef…

25
Jan

C program for Binary Search Tree

#include<stdio.h> #include<stdlib.h> #include<conio.h> struct searchtree { int element; struct searchtree *left,*right; }*root; typedef struct searchtree *node;…

25
Jan

C program for Binary Search Tree Traversal

#include<stdio.h> #include<conio.h> #include<stdlib.h> struct TreeNode; typedef struct TreeNode *node; typedef int ElementType; struct TreeNode { int…

25
Jan

CPP program to do arithmetic operations

#include<iostream.h> #include<conio.h> sint menu(); int add(int, int); int sub(int, int); int mul(int, int); float div(int, int);…