C program to Copy String (Automatic)

#include <stdio.h>
#include <string.h>
int main() 
{
    char str1[50], str2[50];

    scanf("%s", str1);
    strcpy(str2, str1);

    printf("Copied: %s", str2);
}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices