
Originally Posted by
laserlight
If you're talking about how to save the displayed output to a string: do it in the opposite order, i.e., write a function that generates the required string, then print the string or do whatever else you want with it. Using sprintf or more safely snprintf may come in handy instead of printf.
Function return integer value
Code:
int display (void){
int returndata;
return returndata
}
Function return char
Code:
char display (void){
char returndata;
return returndata;
}
What the value this would be return
Code:
struct student*display (void){
struct student *point;
return point;
}
What happen when we call to this function. I have read it when function execute it would return only one value. What type of value it would return integer, character, float, string ?