I am beginner in C,
I am trying to write a function to return a string.
I know that in C we don’t have string data type. instead of these I try to use an array of chars but It’s not my solution.
char[] my_function(int x){
if(x>0)
return 'greaterThanZero';
else
return 'smallerOrEqualOfZero';
}
please help me.
and in the main
Another way:
and in the main