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

array/struct as arg in c++

Name: Anonymous 2012-08-07 14:09

Let's say you have something like:
int tmp=5;
f(tmp);

and it can be written shorter as:
f(5);
This works but what if the argument is an array or a struct?
Something like
f({1,2,3});
doesn't work. Is there an easier way than using a temporary variable?

Name: Anonymous 2012-08-07 17:03

>>5
C is undefined shit.

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