End Google Ads 201810 - BS.net 01 --> My object is to fill the buffer first and then make it empty. But the 'sizeof' command is returning the value '1', whatever input i give to it. Why? The code is mentioned below.


#include
#include
main()
{
char dec;
static char ch[100];
int n=0,i,p,c,count;

while(1)
{
ch[n]=getche();
n=n+1;
if ( ch[n-1]=='\r')
break;
}

count=sizeof(ch[100]);
printf("%ld",count);
printf("Your name is");

for (c=0;c