The return statement terminates the execution of a function and returns control to the calling function. Execution resumes in the calling function at the point immediately following the call. A return statement can also return a value to the calling function.
(or)
It is a keyword which is used to ends the function.
Syntax:- return;
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("prasad\n");
printf("vineela\n");
getch();
return;
printf("sanker\n");
printf("lakshmi\n");
getch();
}
|
Output:-
__________________________________________________
___________________________________________________
_____________________________________________________
___________________________________________________
Post a Comment