Please see this program
I am not getting the desired output
can anyone tell what's the problem
I am getting this output
[SLIDE]http://i44.tinypic.com/148q1jm.png[/SLIDE]
I am not getting the desired output
PHP:
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
clrscr();
char pass[32], ch;
printf("Enter Password : ");
while(1)
{
ch=getch();
if(ch=='q' || ch=='Q')
break;
putchar('*');
}
printf("\n\n Password is : %s",pass);
printf("\n\n Displaying pass is diff way");
for(int i=0; i<=32; i++)
printf("%c",pass[i]);
getch();
}
can anyone tell what's the problem
I am getting this output
[SLIDE]http://i44.tinypic.com/148q1jm.png[/SLIDE]