Passing Sub-Arrays as Parameters

You can effectively pass parts of arrays as parameters.

int powers[8] = {1,2,4,8,16,32,64,128};
print_integers(powers+4, 3); /* prints 16 32 64 */

char message[] = "hello world";
printf("%s\n", message+6); /* prints world */

Index