Write a program to accept string from keyboard and copy string into another string
Answers
Answered by
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()
}
#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
Computer Science,
8 months ago
Math,
8 months ago
History,
8 months ago
English,
1 year ago
English,
1 year ago