Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Array pass effect
#include <stdio.h> // arr is a pointer even if we have // use square brackets. void printArray(int arr[], int arr_size) { int i; for (i = 0; i < arr_size; i++) { *(arr+i)=10; } } int main() { int arr[] = { 1, 2, 3, 4 }; int i; int arr_size = sizeof(arr) / sizeof(arr[0]); printArray(arr, arr_size); for(i=0;i<arr_size;i++) { printf("%d\n",arr[i]);} return 0; }
run
|
edit
|
history
|
help
0
FileCat
squareifnal
치카냥3
A_141211_Tartaglia
Spring 2017 Lab 4 v1.1
C_141204_ValorNumerico
TeleBook
1.6 Set No. of Threads
Conflito entre 4 threads
Hello, World