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

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -