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