Small correction
str1 = str;
if (str1 !=NULL)
printf("%c\b", str1);
while (str1) {
if (str1 == ' ') {
printf("%c\b", str1);
str1++;
} else {
str1++;
}
}
Thanks
Vamsi.J
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of dhana seelan
Sent: Tuesday, December 15, 2009 12:52 PM
To: [email protected]
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]>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]>.Yahoo! Groups Links
http://groups.yahoo.com/group/c-prog/
Individual Email | Traditional
http://groups.yahoo.com/group/c-prog/join
(Yahoo! ID required)
[email protected]
[email protected]
[email protected]
http://docs.yahoo.com/info/terms/
[Non-text portions of this message have been removed]