Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Punteros: dame tres valores
//Title of this code //clang 3.6.0 #include <stdio.h> int dame_tres(int a, int *d1, int *d2, int *d3) { if (a>0) { *d1=1; *d2=2; *d3=3; return 0; } return -1; } int main(void) { int x, y, z; if (dame_tres(3, &x, &y, &z)!=-1) printf("\nx=%d y=%d z=%d", x,y,z); else printf("\nNo hay valores de retorno"); return 0; }
run
|
edit
|
history
|
help
0
Vzdalenost makro inline
Lee hora y suma un segundo
Ducktype
Kód
definice funkce
Cuadrado asteriscos hueco con regalito
salida
Does fgets() read past a leading newline?
POLE[radky][sloupce]
Día de la semana