Hi Moshe,

Thanks for Poiting it out. I haven;t tested it. Wll post the exact code
after check.

Thanks,
Dhana

On Tue, Dec 15, 2009 at 2:12 PM, Moshe Okman <[email protected]> wrote:

>
>
> This is a reply to Mr. Dhana Seelan,
> Have you tried to use your program? I have some questions,
> 1) Assuming that str1 is a pointer to char, when do you believe the endless
> loop " while (str1)" is expected to stop?
> 2) In the "if " instruction you compare a pointer to a char - why?
> 3) Assuming that you meant to use *str1 , the print command will probably
> print two space characters and not the first letter of each word.
> 4) When you use (*str1 == ' '), it will not work for the first "C" since it
> is not preceded with a space.
> Regards,
> Moshe
>
>
> -----Original Message-----
> From: dhana seelan [mailto:[email protected]<dhanaseelan.d%40gmail.com>]
>
> Sent: Tuesday, December 15, 2009 9:22 AM
> To: [email protected] <c-prog%40yahoogroups.com>
> Subject: Re: [c-prog] urgent help please
>
> Let str is the string which stores "C Programming Language"; Str1 is also
> Character pointer here.
>
> str1 = str;
>
> while (str1) {
> if (str1 == ' ') {
> printf("%c\b", str1);
> str1++;
> } else {
> str1++;
> }
> }
>
> Thanks,
> Dhana
>
> On Tue, Dec 15, 2009 at 12:03 PM, Uday Oberio
> <[email protected] <uday_oberio%40yahoo.co.in>>wrote:
>
> >
> >
> > hello everyone
> >
> > In C programming i want to solve one programm of string that is
> > Enter String is C Programming Language
> > Output is C P L.
> > means output is first letter of every word.how it can be possible ..
> please
> > help me
> > thanking you
> > with regards
> > Uday
> >
> >
> > The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> > http://in.yahoo.com/
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> --
> with Regards,
>
> Dhanaseelan Dhayalan,
> [There is a better way of Doing it !!! Find it !!!]
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
>
> To unsubscribe, send a blank message to
> <mailto:[email protected]<c-prog-unsubscribe%40yahoogroups.com>>.Yahoo!
> Groups Links
>
>  
>



-- 
with Regards,

Dhanaseelan Dhayalan,
[There is a better way of Doing it !!! Find it !!!]


[Non-text portions of this message have been removed]



------------------------------------

To unsubscribe, send a blank message to 
<mailto:[email protected]>.Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/c-prog/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to