top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How many values can be returned from a C function?

+3 votes
492 views
How many values can be returned from a C function?
posted Feb 25, 2015 by Jalal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

Strictly speaking you can return only one variable from c function but that variable can be a pointer i.e. pointer to an array or pointer to a structure which can technically be used to return more then one value.

answer Feb 25, 2015 by Salil Agrawal
...