String Copy Manual
C
Medium
4 views
Problem Description
strcpy() without using - copying character by character from source to destination including null terminator. Use pointer arithmetic.
Official Solution
#include <stdio.h>
int main() {
char str[200];
int i;
int count = 0;
printf("Enter a sentence: ");
fgets(str, sizeof(str), stdin);
for (i = 0; str[i] != '