Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 The keyword used to transfer control from a function back to the calling function is ?->(Show Answer!)
1. The keyword used to transfer control from a function back to the calling function is
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.01 pm
The keyword return is used to transfer control from a function back to the calling function. Example: #include<stdio.h> int add(int, int); /* Function prototype */ int main() { int a = 4, b = 3, c; c = add(a, b); printf("c = %d\n", c); return 0; } int add(int a, int b) { /* returns the value and control back to main() function */ return (a+b); } Output:
c = 7
c = 7