i think its because when ur declaring func f ur passing a struct which hasnt been declared yet...put the structure declaraion before the func declaration
On 31 July 2011 20:33, Rajesh Kumar <[email protected]> wrote: > What is Error in This program??plzrply > #include<stdio.h> > f(struct epm); > struct emp > { > char name[20]; > int age; > }; > main() > { > struct emp e={"qwe",12}; > f(e); > } > f(struct emp ee) > { > printf("%s ...%d\n",ee.name,ee.age); > } > > > -- > Rajesh Kumar > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- regards Pratima :) -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
