Computer Science, asked by LUNAlovegood, 1 year ago

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 Anonymous
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( );
}

LUNAlovegood: brainliest!!!!
LUNAlovegood: but a little tough
Anonymous: hey you have to just change source into str1 and dest into str 2
LUNAlovegood: i dont understand c
LUNAlovegood: it is like a goat hunting lion for me
Anonymous: you sounds like a inaginative person
Anonymous: and i like them
Similar questions