Re: [algogeeks] Help ! - Explain Sscanf

2011-08-30 Thread sukran dhawan
sscanf is similar to scanf except that input is read from string rather than keyboard or i/o *c -supression character.it reads character and discards it.doesnt store it anywhere On Tue, Aug 30, 2011 at 9:32 PM, Mani Bharathi manibharat...@gmail.comwrote: char*str=11/1/1999;

Re: [algogeeks] Help ! - Explain Sscanf

2011-08-30 Thread Sanjay Rajpal
only year gets scanned here, * suppresses assignment of day and month. Sanju :) On Tue, Aug 30, 2011 at 9:08 AM, sukran dhawan sukrandha...@gmail.comwrote: sscanf is similar to scanf except that input is read from string rather than keyboard or i/o *c -supression character.it reads

Re: [algogeeks] Help ! - Explain Sscanf

2011-08-30 Thread sukran dhawan
i don think so.can u brief it ? On Tue, Aug 30, 2011 at 10:45 PM, Sanjay Rajpal srn...@gmail.com wrote: only year gets scanned here, * suppresses assignment of day and month. Sanju :) On Tue, Aug 30, 2011 at 9:08 AM, sukran dhawan sukrandha...@gmail.comwrote: sscanf is similar to scanf

Re: [algogeeks] Help ! - Explain Sscanf

2011-08-30 Thread SANDEEP CHUGH
but sanjay in the ques it is *c*cd shudn't there be a % before that ?? On Tue, Aug 30, 2011 at 11:22 PM, Sanjay Rajpal srn...@gmail.com wrote: Run the following program : main() { int a,b; scanf(%d %*d,a,b); printf(\na= %d, b=%d,a,b); } now see the values of a and b, and post the

Re: [algogeeks] Help ! - Explain Sscanf

2011-08-30 Thread sukran dhawan
yes conversion specifier missing i think On Tue, Aug 30, 2011 at 11:37 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: but sanjay in the ques it is *c*cd shudn't there be a % before that ?? On Tue, Aug 30, 2011 at 11:22 PM, Sanjay Rajpal srn...@gmail.com wrote: Run the following program

Re: [algogeeks] Help ! - Explain Sscanf

2011-08-30 Thread Sanjay Rajpal
yes % has to be there. Sanju :) On Tue, Aug 30, 2011 at 11:12 AM, sukran dhawan sukrandha...@gmail.comwrote: yes conversion specifier missing i think On Tue, Aug 30, 2011 at 11:37 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: but sanjay in the ques it is *c*cd shudn't there be a %

Re: [algogeeks] Help ! - Explain Sscanf

2011-08-30 Thread Abhishek Yadav
so what should be the correct question after writing % specifier. On Tue, Aug 30, 2011 at 11:48 PM, Sanjay Rajpal srn...@gmail.com wrote: yes % has to be there. Sanju :) On Tue, Aug 30, 2011 at 11:12 AM, sukran dhawan sukrandha...@gmail.comwrote: yes conversion specifier missing i