[Solved] Can a function return more than one value in C? [duplicate]

[ad_1]

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.

[ad_2]

solved Can a function return more than one value in C? [duplicate]