Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Goodone for understanding array passing
#include <stdio.h> // arr is a pointer even if we have // use square brackets. void printArray(int arr[]) { int i; /* sizeof should not be used here to get number of elements in array*/ int arr_size = sizeof(arr); // / sizeof(arr[0]); printf("%d\n",arr_size); // for (i = 0; i < arr_size; i++) { // printf(" %d", arr[i]); // } } int main() { int arr[4] = { 1, 2, 3, 4 }; printArray(arr); return 0; }
run
|
edit
|
history
|
help
0
qsort
linear hybrid cellular automaton utilizing rules 90 and 150 with period of (2^64)-1 for generating high quality random bits is reversible
is_there_segfault
300
2-D array
B_141212_IntercambiarPunteros
MatrixMul_shortxshort
Pregunta 3 de registros
pointer**
18BCE2182 ASSESS_1 Q1-5