Horje
strcpy c Code Example
strcpy c
char textA[5] = "abc";
char textB[5] = "abc";

printf("Text A: %s\nText B: %s\n\n", textA, textB);

// konstante Zeichenkette in String B kopieren
strcpy(textB, "xyz");
printf("Text A: %s\nText B: %s\n\n", textA, textB);

// char-Array B zu char-Array A kopieren
strcpy(textA, textB);
printf("Text A: %s\nText B: %s\n\n", textA, textB);
strcpy c
Text A: abc
Text B: abc

Text A: abc
Text B: xyz

Text A: xyz
Text B: xyz




C

Related
enregistrement en c Code Example enregistrement en c Code Example
c memcpy Code Example c memcpy Code Example
how to take blank space in c scanf Code Example how to take blank space in c scanf Code Example
odd even in c with ternary operator Code Example odd even in c with ternary operator Code Example
Bitwise Operators in C language Code Example Bitwise Operators in C language Code Example

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