size of below arr is 20.. How it is??.. Can anyone explain it?...
Code:char *a[]={"Oneon", "Twotw", "Three", "Fourinnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn", "Fivei" };
size of below arr is 20.. How it is??.. Can anyone explain it?...
Code:char *a[]={"Oneon", "Twotw", "Three", "Fourinnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn", "Fivei" };
What do YOU think it should be, and can you think of an explanation as to why it is the way it is?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
addr=4 ... sizeof array is 5*4=20 .. right!! I m beginner.. thats why i was confused.. i try to avoid posting these type of questions!!
That is not why I asked a question to answer your question. I want to train you to LEARN to think - if you get the answer on the a forum for every question you have, then you will never learn how to think for yourself. And not thinking for yourself works until you end up with a question that no one actually KNOWS the answer to.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.