Horje
strcpy Code Example
strcpy
#include <stdio.h>
#include <string.h>
int main()
{
     char s1[30] = "string 1";
     char s2[30] = "string 2 : I’m gonna copied into s1";
     /* this function has copied s2 into s1*/
     strcpy(s1,s2);
     printf("String s1 is: %s", s1);
     return 0;
}
strcpy example
Value of second string is: javatpoint




C

Related
c printf uint32_t Code Example c printf uint32_t Code Example
vowel or consonant in c Code Example vowel or consonant in c Code Example
unity change transparency script Code Example unity change transparency script Code Example
c language time() function Code Example c language time() function Code Example
Numeri in ordine crescente C Code Example Numeri in ordine crescente C Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10