/*C program Function with No arguments passed but a return value*/
#include<stdio.h>#include<conio.h>
int send()
{
int no1;
printf("Enter a no : ");
scanf("%d",&no1);
return(no1);
}
void main()
{
int z;
clrscr();
z = send();
printf("\nYou entered : %d.", z);
getch();
}
output
enter a number : 5you entered : 5.
Comments
Post a Comment