I include this fn linkfloat(), Now my program working properly,,,,,,,,but why we have to include this fn externally plz explain.........
On Fri, Aug 5, 2011 at 6:07 PM, SANDEEP CHUGH <sandeep.aa...@gmail.com>wrote: > INCLUDE THIS FUNCTION > linkfloat( ) > { > float a = , *b ; > b = &a ; /* cause emulator to be linked */ > a = *b ; /* suppress the warning - variable not used */ > }; > > On Fri, Aug 5, 2011 at 6:04 PM, Vijay Khandar <vijaykhand...@gmail.com>wrote: > >> But program is not giving the o/p. >> I have taken one printf statement same as scanf......and scanf() taking >> i/p but prinf() not giving o/p... >> >> >> On Fri, Aug 5, 2011 at 5:53 PM, Nikhil Gupta >> <nikhilgupta2...@gmail.com>wrote: >> >>> http://www.ideone.com/ZIibX >>> >>> The changes I have done in the program are to make it compatible to gcc >>> compiler. >>> Check the statement in the bottom of the page. >>> >>> On Fri, Aug 5, 2011 at 5:46 PM, Vijay Khandar >>> <vijaykhand...@gmail.com>wrote: >>> >>>> What errors are you likely to get when you run the following program? >>>> >>>> #include<stdio.h> >>>> #include<conio.h> >>>> #include<string.h> >>>> void main() >>>> { >>>> clrscr(); >>>> struct emp >>>> { >>>> char name[20]; >>>> float sal; >>>> }; >>>> struct emp e[10]; >>>> int i; >>>> for(i=0;i<=3;i++) >>>> scanf("%s %f",e[i].name,&e[i].sal); >>>> getch(); >>>> } >>>> >>>> A)floating point format not linked >>>> B)Suspicious pointer conversion >>>> C)Cannot use scanf() for structures >>>> D)Strings cannot be nested inside structures >>>> >>>> Plz Explain anyone..................... >>>> >>>> Vijay..... >>>> >>>> -- >>>> 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. >>>> >>>> >>> >>> >>> -- >>> Nikhil Gupta >>> Senior Co-ordinator, Publicity >>> CSI, NSIT Students' Branch >>> NSIT, New Delhi, India >>> >>> -- >>> 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. >> > > -- > 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.