Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Arrays

Name: Anonymous 2009-11-27 4:16

Hey /prog/! Which one do you prever of the following:

void myStuff(int *array, size_t len);
void myStuff(int array[], size_t len);

Name: Anonymous 2009-11-27 4:30

>>1
You're using Sepples. You create a wrapper around pointers or arrays using some type of smart pointer or array.

Name: Anonymous 2009-11-27 4:35

>>2
How do you know he's using Sepples?

Name: Anonymous 2009-11-27 4:48

>>3
OP here: actually you are right: I'm using C.

Just to be more precise I'm using nesC, which is a (horrible) event driven variant of C used in some (horrible) embedded device operating system.

Name: Anonymous 2009-11-27 5:18

>>1
If you want to pass an array use the second.

Name: ​​​​​​​​​​ 2010-10-21 15:34

Name: Anonymous 2010-12-17 1:38

This post brought to you by the Gay Nigger Association of America

Don't change these.
Name: Email:
Entire Thread Thread List