[algogeeks] plz explain output y it is 1212

2012-08-17 Thread Shubham Sandeep
#includestdio.h main() { printf ( \%\d\ , 12 ) ; printf ( \%\ d\ , 12 ) ; } -- Regards, SHUBHAM SANDEEP IT 3rd yr. NIT ALD. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

Re: [algogeeks] plz explain output y it is 1212

2012-08-17 Thread gaurav yadav
Hi..please repost your code after properly formatting ...it is not readable...and throws compilation errors. -- 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

Re: [algogeeks] plz explain output

2010-10-13 Thread dinesh bansal
check http://en.wikipedia.org/wiki/NaN On Sat, Oct 9, 2010 at 6:15 PM, ankush jainankus...@gmail.com wrote: #includestdio.h void main() { int x; float t; scanf(%f,t); printf(%f\n,t); x=90; printf(%f\n,x); { x=1;

Re: [algogeeks] plz explain output

2010-10-13 Thread Lily Aldrin
How is the link you gave related to the output question here?? On Wed, Oct 13, 2010 at 7:20 PM, dinesh bansal bansal...@gmail.com wrote: check http://en.wikipedia.org/wiki/NaN On Sat, Oct 9, 2010 at 6:15 PM, ankush jainankus...@gmail.com wrote: #includestdio.h void main() { int x;

[algogeeks] plz explain output

2010-10-09 Thread ankush
#includestdio.h void main() { int x; float t; scanf(%f,t); printf(%f\n,t); x=90; printf(%f\n,x); { x=1; printf(%f\n,x); { x=30; printf(%d\n,x);

Re: [algogeeks] plz explain output

2010-10-09 Thread Ashutosh Tripathi
hey! i am also unable to explain but one thing i got if we use %d in place of %f,we will get the correct output. we must use %d as x is of int data type.so thq code is itself wrong. or u can change x to float data type -- Ashutosh Tripathi UG Student Computer