What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-23 15:43:08
bst traversal with recursion c
# include <stdio.h> # include <conio.h> # include <stdlib.h> typedef struct BST { int data; struct BST *lchild, *rchild; } node; void insert(node *, node *); void inorder(node *); void preorder(nod... Add solution -
Other 2021-09-22 14:43:04
how to print char array in c
#include <stdio.h> #include <string.h> char* createStr(){ static char str[20] = "my"; return str; } int main(){ char a[20]; strcpy(a,createStr()); //this will copy the returned value of createStr() into a[] pr... Add solution -
Other 2021-09-22 04:11:05
best calcculator c program
// Calculator example using C code #include<stdio.h> #include<conio.h> #include<math.h> #include<stdlib.h> #define KEY "Enter the calculator Operation you want to do:" // Function prototype declaration void addition(); ... Add solution -
C 2021-09-21 16:03:03
Selection sort in c with console input with assending order
#include<stdio.h> int main(){ /* Here i & j for loop counters, temp for swapping, * count for total number of elements, number[] to * store the input numbers in array. You can increase * or decrease the size of number array as per... Add solution -
Other 2021-09-21 04:14:03
how to measure execution time c openmp
#include <stdio.h> #include <omp.h> int main(){ double itime, ftime, exec_time; itime = omp_get_wtime(); // Required code for which execution time has to be found ftime = omp_get_wtime(); exec_time = ftime - itime; ... Add solution