ExplanationIn the above program three values date, month, and year are passed to function
dat (). The function displays date. The function dat () returns next date. The next date is printed
in function main (). Here, function dat () receives arguments and return values.
10.12 Write a program to send values to a user-defined function and receive and display the
return value.
#include<stdio.h>
#include<conio.h>
mainO
{
int sum (int, int, int), a,b,c,s;
clrscr ();
printf ("Enter Three Numbers :");
scanf ("%d %d %d",
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.