I want this working but it says i cant store char [20]
it only takes first word like if i type passs word as hello it will take h
Code:
#include<iostream>
using namespace std;
int main()
{
char newpass[20];
char p[20];
char pass[20];
cout<<"Enter your new pass word = ";
cin>>newpass;
cout<<"You entred this password = "<<newpass;
p=newpass;
cout<<"\n Enter the password = ";
cin>>pass;
if(p==pass)
{
cout<<"\n Password is correct";
getchar();
}
else
{
cout<<"it was incorrect";
getchar();
}
getchar();
return 0;
}


