Skip to Main Content
Programming and Data Structures
book

Programming and Data Structures

by Ashok Kamthane
August 2009
Intermediate to advanced content levelIntermediate to advanced
604 pages
21h 39m
English
Pearson India
Content preview from Programming and Data Structures
Functions 329
OUTPUT:
Enter Date dd/mm/yy: 12 12 2001
Today = 12/12/2001
Tomorrow = 13/12/2001
Explanation In 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 d at () 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.
#in clu de< std io.h>
#include<conio.h>
mainO
{
in t sum (in t , in t, in t), a ,b ,c ,s ;
c lrs c r ();
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.
Start your free trial

You might also like

Learning Data Structures and Algorithms

Learning Data Structures and Algorithms

Rod Stephens
Data Structures and Algorithms in C++, Second Edition

Data Structures and Algorithms in C++, Second Edition

Michael T. Goodrich, Roberto Tamassia, David M. Mount

Publisher Resources

ISBN: 9789332506343