k got it thnx a lot.....

On Sat, Oct 8, 2011 at 4:35 PM, shady <sinv...@gmail.com> wrote:

> 1. don't use dev c
> 2. search archives
> 3. after doing 2 you will say it is not there,
> therefore solution by sunny -
>
> char five[7] -> string of length 7
> charlie -> 7 length string
>
> declare it as char[8] u will get expected output
>
> On Sat, Oct 8, 2011 at 4:14 PM, SHIVAM AGRAWAL <shivi...@gmail.com> wrote:
>
>> when i am running this on dev c it is printing times but on running in
>> linux it is not printing times plz any1 xplain me y is it so????
>>
>>
>> #include<stdio.h>
>> main()
>>  {
>>         char outline[50];
>>         char one[7],two[7],four[7],five[7];
>>         int three;
>>         sprintf(outline,"this is %d tim %s \n",10,"charlie");
>>         printf("%s",outline);
>>         sscanf(outline,"%s %s %d %s %s",&one,&two,&three,&four,&five);
>>         printf("%s\n",one);
>>         printf("%s\n",two);
>>         printf("%d\n",three);
>>         printf("%s\n",four);
>>         printf("%s\n",five);
>> }
>>
>>  --
>> 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 this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> 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 this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
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 this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to