In reply to dave_59:
Hello sir, I have clarity of that. But that will happen in case of signed int (rand int p[20]) . In case of unsigned int declaration (rand int unsigned p[20]) , it’s giving garbage values which is not satisfying the constraint (2nd one) .
I should have got series of 0s and 1s.