Thread: C Programming
View Single Post
Old 01-12-2005, 03:54 AM   #6 (permalink)
mohoo
 
Newb Techie

Join Date: Jan 2005

Posts: 16

mohoo

Default

so you mean:
main()
{
int a,b,c;
a=5;
b=8;
c=add(a,b)
printf(c);
}
int add(int y, int x)
{
int z=y+x;
return z;
}

here if c has been defined as int ,but the called function add(int,int) has defined as returning float,then you call there are two different types of data ?
mohoo is offline