strcat in c
#include <stdio.h>
#include <string.h>
int main () {
char src[50], dest[50];
strcpy(src, "This is source");
strcpy(dest, "This is destination");
strcat(dest, src);
printf("Final destination string : |%s|", dest);
return(0);
}#include <stdio.h>
#include <string.h>
int main() {
char str1[100] = "This is ", str2[] = "A Name";
// concatenates str1 and str2
// the resultant string is stored in str1.
strcat(str1, str2);
puts(str1);
puts(str2);
return 0;
}strcat(example, "is over 10 ");
Also in C:
- error 403
- array addition and multiplication in c
- how to rebasde
- mariadb unknown collation: 'utf8mb4_0900_ai_ci'
- c right bit shift
- c allocate array
- c flip variable
- 32bit or 64bit
- sdl audio
- dani
- counter program in c language
- how to zoom in terminal
- pointer basics
- how to make infinite loop in c
- sleep in c programming
- how to modulo decimal c
- switch c
- ruby find object in array by attribute
- c waitpid
- how to find the nth row of pascal's triangle in c
- vue router.push with params
- rakshabandhan 2020
- sleep function in c
- c program to find number of days in a month using switch case