programming9
  • Flowcharts
  • Programs
      • Back
      • C Programs
      • C++ Programs
      • Java Programs
      • Python Codes
      • HTML Codes
      • Java Script Codes
      • SQL Codes
  • Tutorials
      • Back
      • Java Tutorials
      • Competitive Programming
      • Python Tutorials
      • C Programming
  • Blog
  • Login

C Program to CONCATENATE Two Strings using strcat()

Written by: RajaSekhar
  • C Strings
#include <stdio.h>
#include <string.h>
main()
{
    char s1[20], s2[20];
    printf("\nEnter first string: ");
    gets(s1);
    printf("\nEnter second string: ");
    gets(s2);
    strcat(s1, s2);
    printf("\nThe concatenated string is: %s", s1);
    getch();
}

 OUTPUT:

Enter first string: Programming

Enter second string: .com

The concatenated string is: Programming.com

The same program can write with out using STRCAT() Function

Previous article: C Program to Copy Contents From One File to Another Prev Next article: C Program to Compare Two Strings using strcmp() Next
  • C Program for String Concatenation without using strcat()
  • C program for Fibonacci Series using do-while Loop
  • C Program for Floyd Triangle
  • C Program to Implement Structure with Functions
  • C Program to Design Lexical Analyzer
  • C Program to Find Sub String Position in Given String
  • C Program to Find Radius and Circumference of a Circle
  • C Program to Calculate Sum of Marks to Demonstrate Structures
  • C Program to Implement Circular Linked List
  • C Program to convert Celsius to Fahrenheit
  • C Program to Find Prime Factors of a Given Positive Number
  • C Program to find Reverse of a Number
  • C Program to ADD two MATRICES
  • Swap Two Static Numbers Using C
  • C Program to Implement STACK Operations Using Pointers
  • Privacy Policy
  • Cookie Policy
© programming9.com 2026
Back to top