Mega Code Archive
Categories
/
C
/
Function
Assign function return value to a variable
#include
int f(void); int main(void) { double answer; answer = f(); printf("%f", answer); return 0; } int f(void) { return 100; }