Computer Science, asked by heerramandeep4821, 9 months ago

Is the ‘str copy’ function used to copy strings?

Answers

Answered by raynanndini
1

Answer:

The syntax of the strcpy() function is: Syntax: char* strcpy (char* destination, const char* source); The strcpy() function is used to copy strings. It copies string pointed to by source into the destination .

Answered by NAZUKO
0

ANSWER : yes  the 'str copy 'function used to copy strings

for example : #include<stdio.h>

int main() {

char s1[100], s2[100];

int i;

printf("\nEnter the string :");

gets(s1);

i = 0;

while (s1[i] != '\0') {

Similar questions