Test password for adherence to policy
You have introduced some weird an IMO unnecessary scope blocks here:

    {
        for(i=0;i&lt;=strlen(pass);i++) 
        if( isupper(pass[i]) )
        flag1=1;
        else if(isdigit(pass[i]))               //Loop to check if all element in pass has a digit, alpha &amp; '$'
        flag2=1;
        else if(pass[i]=='$')
        flag3=1;
    }


and here:

            {
                if((flag1==1) &amp;&amp; (flag2==1) &amp;&amp; (flag3==1))      //All condition true
                {
                printf("\nNice Password!");
                }
                else
                    {
                    printf("\nPassword must contain a upper case letter, a number and a $ sign");  //Something missing
                    }
            }   


The code should be reformatted like this probably:

        for(i=0;i&lt;=strlen(pass);i++) {
            if( isupper(pass[i]) ) {
                flag1=1;
            }
            else if(isdigit(pass[i])) {               //Loop to check if all element in pass has a digit, alpha &amp; '$'
                flag2=1;
            }
            else if(pass[i]=='$') {
                flag3=1;
            }
            if((flag1==1) &amp;&amp; (flag2==1) &amp;&amp; (flag3==1)) {     //All condition true
                printf("\nNice Password!");
            }
            else {
                printf("\nPassword must contain a upper case letter, a number and a $ sign");  //Something missing
            }   
        }