Computer Science, asked by samdina1999, 1 year ago

Write a program to accept string from keyboard and copy string into another string

Answers

Answered by ask95377
1
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
void main()
{
char a[20],b[30];
cout<<" enter the string ";
gets(a);
strcpy(b,a);
cout<<b;
getch()

}
Similar questions