Saturday 22 September 2012

String025

Concept of strcat ( ).

#include <stdio.h>
#include <conio.h>
#include <string.h>
void main ( )
{
          char        source[6] = "Folks";
          char        target[12] = "Hello" ;
          clrscr ( );
                  
          strcat ( target, source );               /* Used for concatenate two strings */
                    
          printf("\n\n\n\t\t Source String.....: %s", source);
          printf("\n\n\n\t\t Target String.....: %s", target);
                    
          getch ( );
}
Click here to contact us

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...