skip to main
|
skip to sidebar
Help to C
Search This Blog
Thursday, June 3, 2010
2-Function 01-1 void (Pass Arguments to Function) Add two num
/* More Samples :-
http://www.helptoc.blogspot.com
mail - helptoc@gmail.com
*/
#include
void sum(int a, int b) /* Add a and b */
{
int c;
c = a + b;
printf ("Total = %d\n", c);
}
int main()
{
sum (15, 12);
exit(0);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
My Blog List
Graphics
-
Contact me *prasanna.graphic@gmail.com* (+94) 0712155005
14 years ago
Tour to Sri Lanka
-
Sri Lanka is a tourist's paradise. Marco Polo described it as "the finest island of its size in the world". Wonderful pristine beaches, lush-green hills, m...
16 years ago
Followers
Blog Archive
▼
2010
(10)
▼
June
(10)
1-Function 01-1 void (Star line)
1-Function 01-2 void (Two line)
1-Function 01-3 void (Star line) Using two function
1-Function 01-4 void (Squares 1-10)
2-Function 01-1 void (Pass Arguments to Function) ...
2-Function 01-2 void (Pass Arguments to Function w...
3-Function 01-1 int(Pass Arguments to Function and...
3-Function 01-2 int(Pass Arguments to Function and...
Factorial
Factorial 02
About Me
Prasanna Weerasinghe
View my complete profile
No comments:
Post a Comment