ITS (A). BECAUSE WE HAVE TO LINK THE EMULATOR AS COMPILER SEES A REFERENCE TO FLOATING POINT NUMBER IT SETS ITS FLAG TO HAVE THE LINKER LINK INT THE EMULATOR.. ITS IN 16 BIT COMPILER BECAUSE THERE IS NO PROVISION FOR FLOATING POINT OPERATIONS IN 16 BIT MICRO PROCESSOR..SO THEY USE FLOATING POINT EMULATOR... NOT IN VC++
On Fri, Aug 5, 2011 at 5:46 PM, Vijay Khandar <[email protected]>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 [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. > > -- 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.
