C examples for Function:Function Parameter
Arrays as hidden pointers are passed by address
#include <stdio.h> void set(int a[]) { a[0] = 1; } int main(void) { int x[] = { 0 }; set(x);/*from ww w . j a va2s . c o m*/ printf("%d", x[0]); /* "1" */ }