What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-13 11:51:03
multiplication table in 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 -
C 2021-09-13 08:38:04
c program for prims algorithm
#include<stdio.h> #include<conio.h> int a,b,u,v,n,i,j,ne=1; int visited[10]= { 0},min,mincost=0,cost[10][10]; void main() { clrscr(); printf("\n Enter the number of nodes:"); scanf("%d",&n); printf("\n Enter th... Add solution -
Other 2021-09-12 12:50:02
uva 10570
#include <iostream> #include <cmath> #include <cstdlib> #include <set> #include <cstdio># Include <cstring>using namespace std;typedef long long ll;const int INF = 0x3f3f3f3f;const int MAXN = + 5;int a[ MAXN], b[maxn... Add solution -
C 2021-09-12 02:09:03
how to make calculator in c language
#include <stdio.h> int main() { char operator; double first, second; printf("Enter an operator (+, -, *,): "); scanf("%c", &operator); printf("Enter two operands: "); scanf("%lf %lf"... Add solution -
Other 2021-09-11 21:06:01
c share variable between forks
#include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> static int *glob_var; int main(void) { glob_var = mmap(NULL, sizeof *glob_var, PROT_REA... Add solution -
C 2021-09-11 08:23:04
reverse a singly linked list in c
/** * C program to reverse a Singly Linked List */ #include <stdio.h> #include <stdlib.h> /* Structure of a node */ struct node { int data; //Data part struct node *next; //Address part }*head; /* Functions used in the program *... Add solution -
C 2021-09-11 06:00:02
The number of repeated letters in two words
#include <stdio.h> #include<string.h> int main(void) { int n,m,i,j,d; char tab1[100],tab2[100]; printf("enter the first word :"); gets(tab1); printf("enter the second word :"); gets(tab2); n=strlen(tab1); m=... Add solution