boost learn study
Monday, March 31, 2014
Function with argument and no return value
Home
�
C Functions
�
Function with argument and no return value
/*Function with argument and no return value*/ #include
#include
void main() { int a,b; clrscr(); Sum(int,int); printf("\n Enter the Two No. for Sum :\n"); scanf("%d%d",&a,&b); Sum(a,b); getch(); } Sum(int x,int y) { int sum; sum= x + y; printf("Sum=%d", sum); }
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