I modified the progoram

and now the output is somewhat working
but still not fully working

here is the new code

PHP Code: 
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
    
clrscr();
    
char pass[32], ch;
    
printf("Enter Password : ");
    
int j=0;
    while(
1)
    {
    
ch=getch();
    if(
ch=='q' || ch=='Q')
    break;
    
pass[j]=ch;
    
putchar('*');
    
j=j+1;
    }
    
printf("\n\n Password is : %s",pass);
    
printf("\n\n Displaying pass is diff way");
    for(
int i=0i<=32i++)
    
printf("%c",pass[i]);
    
getch();


outout is



typed prateek as password