Function with no arguments and no Return Value In C
- These function do not take information from the calling function nor do they pass information to calling Program
#include<stdio.h>
#include<conio.h>
//----------------------------------------
void area(); // Prototype Declaration
//----------------------------------------
void main()
{
clrscr();
area();
getch();
}
//----------------------------------------
void area()
{
float ar;
printf("\nEnter the radius : ");
scanf("%f",&rad);
ar = 3.14 * rad * rad ;
printf("Area of Circle = %f",ar);
}
Output :Enter the radius : 3 Area of Circle = 28.260000
Bookmark & Share
0 comments
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email