[glug-t] Re: Hacking in C

Here is one of the solution, 

while( *str1++ = *str2++ );

The only problem in this solution is str1 and str2
won't point to the string after copying it.


--- Vijay Kumar <vijaykumar@xxxxxxxxxxxx> wrote:
> Here is a simple task which is not trivial in C -
> You have two char
> pointers str1 and str2. str2 points to a string,
> which has to be copied
> to a buffer pointed to by str1. 
> Regards,
> Vijay



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com

---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts: