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