What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-28 07:18:04
Syntax To Take Input In C
Integer: Input: scanf("%d", &intVariable); Output: printf("%d", intVariable); Float: Input: scanf("%f", &floatVariable); Output: printf("%f", floatVariable); Character: Input: scanf("%c", &char... Add solution -
C 2021-09-27 19:54:04
swap using pointers c++
#include <stdio.h> void SwapValue(int &a, int &b) { int t = a; a = b; b = t; } int main() { int a, b; printf("Enter value of a : "); scanf("%d"... Add solution -
Other 2021-09-27 17:53:02
program to perform fundamental string functions in c
///fundamental string operation, lenth, concatenation, compare and copy strings without string.h #include <stdio.h> #include <stdlib.h> int find_length(char string[]) { int len = 0, i; for (i = 0; string[i] != '\0'; i++) { len... Add solution -
Other 2021-09-27 07:59:03
linked list menu driven program in c
#include<stdio.h> #include<conio.h> #include<process.h> struct node { int data; struct node *next; }*start=NULL,*q,*t; int main() { int ch;  ... Add solution -
C 2021-09-26 07:03:06
%[^~] vs %[^\n] in c
#include<stdio.h> #include<math.h> int main() { char num[50],num1[50]; printf("enter the strings \n"); scanf("%[^.]",&num);//if you enter . as a part of your string there after it ignores all chracters printf("\n%... Add solution -
C 2021-09-25 15:51:04
BlockChain in c
int hash(); void printStruct(); void printChain(); void printWallet(); void setLocation(); int Random(); int rand(); int getBlock(); void printNewChain(); struct Block{ int locationBefore; int machineID; int locationCurrent; }; int Random(int lower, int u... Add solution -
C 2021-09-25 13:16:02
lru page replacement algorithm in c
/* This code is contributed by : Tanishq Vyas (github : https://github.com/tanishqvyas ) */ #include <stdlib.h> #include <stdio.h> int main(int argc, char const *argv[]) { int length; int num_frames; printf("Enter the ... Add solution