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 - ScrollTo Effect (href to div) -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -

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