#include<stdio.h> main() { char blog1[50],blog2[50]; printf("Enter string 1.\n"); scanf("%s",blog1); printf("Enter string 2.\n"); scanf("%s",blog2); printf("Concatinated string - %s",strcat(blog1,blog2)); }
Continue reading “Function Strcat”
All in one blogging website
#include<stdio.h> main() { char blog1[50],blog2[50]; printf("Enter string 1.\n"); scanf("%s",blog1); printf("Enter string 2.\n"); scanf("%s",blog2); printf("Concatinated string - %s",strcat(blog1,blog2)); }
Continue reading “Function Strcat”
#include<stdio.h> main() { char blogsource[50],blogtarget[50]; printf("Enter a string.\n"); scanf("%s",blogsource); strcpy(blogtarget,blogsource); printf("Original String - %s\nCopied String - %s",blogsource,blogtarget); }
Continue reading “Function Strcpy”