result is not defined by standard c. It doesnt produce compiler error just because return type is int and no value is returned in if(1>0) basically garbage
On Sun, Sep 18, 2011 at 12:23 PM, Bhavesh agrawal <agr.bhav...@gmail.com>wrote: > #include<stdio.h> > > main() > > { > > int a ; > > a=abc(); > > printf("\n %d this is fisrt a:",a); > > a=abc(); > > printf("\n %d this is second a:",a); > > } > int abc() > > { > > int i=23; > > if(1>0) > > return ; > > i++; > > return(++ i); > > } > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.