DO NOT MISS

Ads

Sunday 7 August 2016

C-Programs Using Return Statement



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;

* Write a program to use keyword return statement.


#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:-

__________________________________________________
>> Back to Jumping Statements
___________________________________________________
___________________________________________________
_____________________________________________________
___________________________________________________

Greataims

 
Copyright © 2016 Computersadda. Designed by @ Computersadda Team - Published By Greataims