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:dhanaseela...@gmail.com] Sent: Tuesday, December 15, 2009 9:22 AM To: c-prog@yahoogroups.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 <uday_obe...@yahoo.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:c-prog-unsubscr...@yahoogroups.com>.Yahoo! Groups Links