Function arguments and return values in C - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: C 18 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=32) +--- Thread: Function arguments and return values in C (/showthread.php?tid=5084) |
Function arguments and return values in C - Qomplainerz - 07-25-2023 Functions can take arguments as input and return values as output. int square(int num) { return num * num; } int result = square(5); printf("Result: %d\n", result); // Output: 25 |