Return more than one value or an array from a function in C without using pointer or structure -


can return more 1 value function or array without using pointer or structure? if yes,then how?

you can't. in c, every function returns either no value, not return or returns 1 value. can't return more 1 value except using 1 of things exclude or writing value global variable caller can read, that's bad idea.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -