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