click on this link......

LinkGrand.com

Wednesday 23 January 2013

string concatenation using inbuilt function

#include<stdio.h>
#include<conio.h>
void main()
{
    char str1[25],str2[25];
    int y;
    clrscr();
    printf("\nEnter first string:");
    scanf("%s",str1);
    printf("\nEnter second string:");
    scanf("%s",str2);
    strcat(str1,str2);
    printf("\nstr1 contains  %s\n",str1);
    printf("\nstr2 contains  %s\n",str2);

    getch();
}

string concatenation using inbuilt function
string concatenation using inbuilt function

string concatenation using inbuilt function
string concatenation using inbuilt function

No comments:

Post a Comment