I've been trying to make a program which involves checking if two inputted passwords match. However, it seems as though my program always says that the passwords do not match, even though they actually should.
Also, I'm only allowed to use TurboC++ for this project.
There are numerous problem in this code, but most prominent that your character arrays are not null terminated, so strcmp does not know when it should stop comparing and compares random memory until mismatch is found.