these kind of question are compiler dependent
if you are preparing for interview than these kind of questions are not asked On Tue, Mar 29, 2011 at 10:42 PM, kunal srivastav < [email protected]> wrote: > refer let us c by YK fr these type of ques > > > On Tue, Mar 29, 2011 at 10:07 PM, ArPiT BhAtNaGaR < > [email protected]> wrote: > >> please do answer geeks me waiting >> >> >> On Mon, Mar 28, 2011 at 11:14 PM, ArPiT BhAtNaGaR < >> [email protected]> wrote: >> >>> #include<stdio.h> >>> main() >>> { >>> long x; >>> float t; >>> scanf("%f",&t); >>> printf("%d\n",t); >>> x=90; >>> printf("%f\n",x); >>> { >>> x=1; >>> printf("%f\n",x); >>> { >>> x=30; >>> printf("%f\n",x); >>> } >>> printf("%f\n",x); >>> } >>> x==9; >>> printf("%f\n",x); >>> >>> } >>> >>> o/p on gcc compiler >>> 20.3 (i/p given) >>> -1073741824 >>> 20.299988 >>> 20.299988 >>> 20.299988 >>> 20.299988 >>> 20.299988 >>> >>> plz explain the o/p.... >>> >>> -- >>> Arpit Bhatnagar >>> (MNIT JAIPUR) >>> >>> >> >> >> -- >> Arpit Bhatnagar >> (MNIT JAIPUR) >> >> -- >> 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. >> > > > > -- > thezeitgeistmovement.com > > -- > 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. > -- SOURABH JAKHAR,(CSE)(3 year) ROOM NO 167 , TILAK,HOSTEL 'MNNIT ALLAHABAD The Law of Win says, "Let's not do it your way or my way; let's do it the best way." -- 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.
