home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
qc_prog
/
chap16
/
sumnums2.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1988-04-07
|
338 b
|
20 lines
/* sumnums2.c -- type mismatch in function arguments */
/* Function prototyping */
int sums(int, int);
main()
{
float a = 10.0;
float b = 20.0;
int c;
c = sums(a, b);
printf("sum of %.1f and %.1f is %d\n", a, b, c);
}
int sums(x, y)
int x, y;
{
return ( x + y);
}