What do you want to save?
Add Code snippet
New code examples in category C
-
Phoenix Logan 2022-02-17 23:40:06
input value from terminal to c
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int rings; if(argc != 2) { printf("Usage: %s number-of-rings\n",argv[0]); return 1; } rings = atoi(argv[1]); printf("Using ... Add solution -
Awgiedawgie 2022-02-17 02:10:05
callback c++ c
//Define a type for the callback signature, //it is not necessary, but makes life easier //Function pointer called CallbackType that takes a float //and returns an int typedef int (*CallbackType)(float); void DoWork(CallbackType callback) { float v... Add solution -
Awgiedawgie 2022-02-16 02:40:16
passing a pointer to a function
// passing a pointer to function in C // It increaments the salary of an employee #include <stdio.h> void salaryhike(int *var, int b) { *var = *var+b; } int main() { int salary=0, bonus=0; printf("Enter the employee current salar... Add solution -
A-312 2022-02-15 22:30:01
what is conio.h
conio. h Is a C header file used mostly by MS-DOS compilers to provide console input/output. It is not part of the C standard library or ISO C, nor it is defined by POSIX. This header declares several useful library functions for performing "console... Add solution -
Awgiedawgie 2022-02-15 08:40:13
arduino how to set pins as high or low
digitalWrite(pin, HIGH/LOW); Add solution
Best helpers
Ljs
+5
Dr.khan
+5
Volker Kamin
+5
Akash Patel
+5
Bill Reason
+5
Sultan
+5
Rednryt
+5
Feefee
+5
GuitarFan
+5
Emdms
+5
Vlk
+5
Erwin
+5
Hrishioa
+5
Rpeinhardt
+5
Boehmi
+5
Bobby J
+5
Terry-s
+5
Mururoa
+5