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;
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
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
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
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
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 %
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