you mean return char OR value into a variable? or char AND value into separated variable?
char OR value into a variable
> try declar the variable as character
char AND value into separated variable
> there's no any clue to return 2 value. but by using pointer you may fix this problem. for eg:
Code:
int main (void)
{
..
..
function (&char, &int);
..
..
}
void function (char *a, int *b)
{
..
..
printf ("enter character > ");
scanf ("\n%c", &*a);
..
printf ("enter integer > ");
scanf ("\n%d", &*b);
}