boost learn study
Monday, March 31, 2014
Function with argument and return value
Home
�
C Functions
�
Function with argument and return value
/*Function with argument and return value*/ #include
#include
void main() { int a,b,c; int Sum(int,int); clrscr(); c = Sum(a,b); printf("Sum=%d", c); getch(); } int Sum(int x,int y) { int z; s = x + y; return (z); }
Output is as:
Enter the Two No. for Sum :
10
10
Sum= 20
Read more �
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment