What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-13 13:48:05
how to create to register with email in c language
//************************************** // Name: Login Using a Text File in C // Description:While I'm writing my book on C programming I came across with the idea to include in my book topic on File Handling in C. The idea is to write a program usi... Add solution -
C 2021-10-12 10:17:05
how to stop scanf from adding a new line in c
For a simple solution, you could add a space before the format specifier when you use scanf(), for example: scanf(" %c", &ch); The leading space tells scanf() to skip any whitespace characters (including newline) before reading the next char... Add solution -
C 2021-10-07 13:39:03
best approach c menu terminal
#include<stdio.h> typedef void (*Menu_Processing_Function_Pointer)(void); struct Menu_Option { char choice; char const *p_selection_text; Menu_Processing_Function_Pointer p_processing_function; }; void Process_Selection_One(){ printf("Te... Add solution -
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-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 -
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