Write a program to read a string with name str1 and copy it into another string str2. Now print both strings str1 and str2 in c language.plz make it fast
Answers
Answered by
2
#include<iostream.h>
#include<conio.h>
#include<conio.h>
const int size=50;
void main( )
{
char source[ size ],dest[size];
clrscr( );
cout<<" enter a string a length <= "<< Size-1<<endl;
cin.grtline(source,size);
cout<<" the string copied in dest ";
cout<<dest;
getch( );
}
#include<conio.h>
#include<conio.h>
const int size=50;
void main( )
{
char source[ size ],dest[size];
clrscr( );
cout<<" enter a string a length <= "<< Size-1<<endl;
cin.grtline(source,size);
cout<<" the string copied in dest ";
cout<<dest;
getch( );
}
LUNAlovegood:
brainliest!!!!
Similar questions
Biology,
7 months ago
English,
7 months ago
English,
7 months ago
Math,
1 year ago
Political Science,
1 year ago