Can a function return more than one value in C? -
i'm beginner in c. heard function in c cannot return more 1 value, not case in program; it's returning more 1 value , code running fine. please explain.
#include<stdio.h> int main () { int a=10,b=9; return a,b; }
function can return single value .
#include<stdio.h> int main () { int a=10,b=9; return a,b; }
when returning that. here comma (,). operator work. return last value list.
Comments
Post a Comment