This program is about Concatenate and print the given string without using pre-define functions.
#include<stdio.h> int main() { int i,j,n,k=0; char a[100],b[100],c[100]; printf("\nEnter the First String:"); gets(a); printf("\nEnter the Second String:"); gets(b); printf("\nGiven First String:"); puts(a); printf("\nGiven Second String:"); puts(b); for(i=0;a[i]!='\0';i++) { c[k]=a[i]; k++; } for(i=0;b[i]!='\0';i++) { c[k]=b[i]; k++; } printf("\nConcatenate Value is:%s",c); return 0; }To download raw file Click Here
Enter the First String:Tutor Enter the Second String:Joe's Given First String:Tutor Given Second String:Joe's Concatenate Value is:TutorJoe's
Learn All in Tamil © Designed & Developed By Tutor Joes