Function can return a single value .
#include<stdio.h>
int main () {
int a=10,b=9;
return a,b;
}
when your returning like that. here comma (,). operator will work. it will return the last value from the list.
solved Can a function return more than one value in C? [duplicate]