Question: Password checker You are given a function: int CheckPassword ( char str [ ] , int n ) ; The function accepts string ' str
Password checker
You are given a function:
int CheckPasswordchar str int n;
The function accepts string str of size as an argument. Implement the function which returns if given string str is a valid password else str is a valid password if it satisfies the below conditions:
At least characters
At least one numeric digit
Atleast one capital letter
Must not have space or slash
Starting character must not be a number
Assumption:
The input string will not be empty.
Example
Input
aA
Output
Input format
Input is a string given by the user.
Output format
Output can be if the entered string is a valid password or if it is invalid.
Sample testcases
Input
aA
Output
Input
A
Output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
