home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
alde_c
/
misc
/
util
/
super_c
/
add1to2.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1980-01-01
|
277 b
|
17 lines
/* Example: Add 1 to 2 and Print It
*/
/* main()
Function: Add 1 and 2 and print the result.
Algorithm: Call add to add the two numbers, and printf to print them.
*/
main()
{
printf("1 + 2 = %d.\n",add(1,2));
}