SCHOOL OF CODE BUILDERS
Learn To CODE. Become A DEVELOPER.
Pages
HOME
DATA STRUCTURES
STRINGS
ARRAYS
MATRIX
BINARY TREES
LINKED LIST
STACK
QUEUE
SORTING
SEARCHING
C
PYTHON
PSEUDOCODE
CONTEST PROBLEMS
ALGORITHMS
PATTERNS
PHP
C PUZZLES
C INTERVIEW QUESTIONS
JAVA
C++
HASHING
RECURSION
BASIC C PROGRAMS
TCS-CODEVITA
FACEBOOK
CONTACT US
C program to add two strings using library function
C program to add two strings using library function
Output:
Enter the two strings to add:
Code Register
The concatenated string is CodeRegister
Implementation:
#include
#include
#include
#define MAX 1000000 int main(void) { char s[MAX],v[MAX]; printf("Enter the two strings to add:\n"); scanf("%s %s",s,v); strcat(s,v); printf("The concatenated string is %s",s); return 0; }
PREVIOUS
NEXT
HOME