why it doesnot works for values other than 0 and -1
i mean when i tried to print values of array 'a' after memset() then it shows incorrect values.
int a[100];
memset(a,0,sizeof(a)); ///it works
memset(a,-1,sizeof(a)); ///it works
memset(a,1,sizeof(a)); ///it doesnt