K
K. Jennings
I have a function f with the following prototype: int f(void *).
From my main() (or whatever) I can do things like
int x = 123456 ;
int y ;
y = f(&x) ;
which is fine. My question is, how can I pass the 123456 integer to f
without using the intermediate x variable? Naively, what I would like to
do is something like
y = f(&123456) ;
which of course results in a syntax errors.
From my main() (or whatever) I can do things like
int x = 123456 ;
int y ;
y = f(&x) ;
which is fine. My question is, how can I pass the 123456 integer to f
without using the intermediate x variable? Naively, what I would like to
do is something like
y = f(&123456) ;
which of course results in a syntax errors.