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
Lee hora y suma un segundo
C - Append Character to String
SureshLabLive
Kód
strchr
ejemplos bucles basicos
scanf() and printf()
cv3
funny stack overflow
CV09-2.1