Blogger templates

Pages

Wednesday 15 August 2012

WAP of C Language that illustrates the Function with no arguments and no Return values


Functions with no Arguments and no Return values:
The called Function does not receive any data from the calling Function and it does not return any data back to the calling Function. Hence, there is no data transfer between the calling Function and called Function. So, let us understand this with the help of Program:

Statement of C Program: This Program illustrates the Function with no Arguments and no Return value:
#include<stdio.h>
#include<conio.h>
void main()
{
read_value();
}
read_value()
{
char name[10];
printf(" Enter your name\n");
scanf("%s" , name);
printf(" Your name is %s , name);
}

Output:
Enter your name
shubham
Your name is shubham

                                                                  That's All

0 comments:

Post a Comment