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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -