What do you want to save?
Add Code snippet
New code examples
-
C 2022-01-25 17:26:31
C Program to evaluate postfix expression using stack
#include<stdio.h> int stack[20]; int top = -1; void push(int x) { stack[++top] = x; } int pop() { return stack[top--]; } int main() { char exp[20]; char *e; int n1,n2,n3,num; printf("Enter the expression :: "); ... Add solution -
TypeScript 2022-01-23 17:06:28
between two sets problem hackerrank solution in c
#include<stdio.h> int main() { int n,t,flag1,flag2,j,total=0,i; int m; scanf("%i %i", &n, &m); int a[n],b[m]; for (i = 0; i < n; i++) scanf("%i",&a[i]); for (i = 0; i < m; i+... Add solution -
Other 2022-01-23 07:55:14
how to take multiple char in C
Search Results Featured snippet from the web scanf ( %d , &n); for (i = 0; i < n; i++) { scanf ("%c", &c); printf ("%c\n", c); //printed only after all characters are read. printf ("%d\n", c); //printed only after ... Add solution -
C 2022-01-22 17:51:04
c program to swap two numbers using call by reference
#include <stdio.h> void swap(int*, int*); int main() { int x, y; printf("Enter the value of x and y\n"); scanf("%d%d",&x,&y); printf("Before Swapping\nx = %d\ny = %d\n", x, y); swap(&... Add solution -
Other 2022-01-22 12:20:30
Write a program to perform predictive parsing.
#include<stdio.h> #include<conio.h> #include<string.h> void main() { char fin[10][20],st[10][20],ft[20][20],fol[20][20]; int a=0,e,i,t,b,c,n,k,l=0,j,s,m,p; printf("enter the no. of coordinates\n"); scanf("%d",&n);... Add solution -
Other 2022-01-22 00:40:21
c program to print prime number from 2 to n
#include<stdio.h> int main() { int n,i,fact,j; printf("Enter the Number"); scanf("%d",&n); printf("Prime Numbers are: \n"); for(i=1; i<=n; i++) { fact=0; for(j=1; j<=n; ... Add solution -
Other 2021-12-23 16:36:09
while i am using int function in c one extra output is coming
#include<stdio.h> int cir(float r) { float dia,circum,are; dia=2*r; circum=(2*3.14*r); are=(3.14*r*r); return printf("The circle has diameter %.2f , circumferrence %.2f and Area %.2f ",dia,circum,are); } int main() { ... Add solution