#include<iostream.h>
//#include<string.h>
main()
char f[10];
char s[10];
char m[20];
char c;
cout<<"Please enter the character in the first array:";
for(c=0;c<11;c++)
cin>> a[c];
cout<<"Please enter the character in the second array:";
for(c=0;c<11;c++)
cin>> b[c];
this code not compiling n run
plz highlight my mistake
Sonia,
I dont know exactly what you are trying to achieve, but hope the following code helps you
#include<iostream>
using namespace std;
int main()
{
char a[10];
char b[10];
char c;
cout<<"Please enter the character in the first array:";
for(c=0;c<10;c++)
cin>> a[c];
cout<<"Please enter the character in the second array:";
for(c=0;c<10;c++)
cin>> b[c];