Saturday, 12 February 2011

return type of functions in c






return is keyword of c. When the control reaches to the return keyword it immediately terminates the execution of that function and transfer the control to the calling function.

Syntax of return statement:








Here expression is optional which has indicated by [ ].

Example:

#includeprintf

void dev();

int main(){

    printf("one\n");

    dev();

    printf("two\n");

   

No comments:

Post a Comment