Re: [algogeeks] Please explain its working..

2011-09-03 Thread annarao kataru
@sanjay then why to put str in printf statement . is there no effect of placing str in printf stat . plz clarify?? -- 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 u

Re: [algogeeks] Please explain its working..

2011-08-21 Thread Sanjay Rajpal
In the prototype of printf, first argument is a format string, which here is str. However generally we see a const string there which is stored in data area. Rest of things are simple. Hope u got it :) Sanju :) On Sun, Aug 21, 2011 at 1:15 PM, Amol Sharma wrote: > study about the argument o

Re: [algogeeks] Please explain its working..

2011-08-21 Thread Amol Sharma
study about the argument of printf.it will be clear thenactually str is acting as a format string in your code -- Amol Sharma Third Year Student Computer Science and Engineering MNNIT Allahabad

Re: [algogeeks] Please explain its working..

2011-08-21 Thread JAIDEV YADAV
i think it is simple as it seems ... On Mon, Aug 22, 2011 at 1:26 AM, Romil ... wrote: > #include > int main() > { > char *str; > str = "%s"; > printf(str, "K\n"); > return 0; > } > > > > -- > Romil > > > -- > You received this message because you are subscribed to the Googl

[algogeeks] Please explain its working..

2011-08-21 Thread Romil .......
#include int main() { char *str; str = "%s"; printf(str, "K\n"); return 0; } -- Romil -- 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 thi