int i=4
int[] s =new int [1<
the ouput is 16
i don't know why?
what's the mathematical function?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hiren SoniPosted Dec 25, 2009, 8:27 PM
Kirtan PatelPosted Dec 25, 2009, 3:09 PM
//00000100 Binary of 4
After Shift Left Operation ( i << 2) move each bit left by 2 and ( binary will be below which is Binary of 16)
//00010000 Binary of 16
so you got the length = 16