Id like to pass 1 variable from main to funk and receive more than one back to printf on main.
Well I guess I can give an array from main then use the elements array(0...n] in funk and print it out in main.
am I rigth?
BUT can I do like this....
which bothers me causeI get lots of errors.
cheers!Code:void funk(); /*prototype*/ main() { funk( e.g &var1) /*passing one variable to funk */ } void funk ( *var1, *var2, *var3) /*returning moe than one to main*/ { /*calculation*/ }
![]()



LinkBack URL
About LinkBacks




If you really want to a variable number of arguments, write a function with a variable length argument list: