i have 3 questions, the first one is:
why isnt this possible:
and this is:Code:char a; a="Hello";
??Code:char *a; a="Hello"
i know that when i call both variables they both point to a then why cant the first one work as the 2º one (but of course, it would store less chars)??
the 2 q:
why does this: char *a="TESTING TESTING" takes the same space as this: char *a=" " (both take only 4 bytes. and why does this: char a takes 10 bytes. i know that one automaticaly reserves space for 10 chars and the other one doest, but how can we store like... 10 chars in 4 bytes??
the 3 q:
how is a float number like 24,123342 represented in bits? and why does a number like 3*10^20 only takes 4 bytes of space?? (the same as an integer).
Help pls, those may be stupid questions for some but those things dont make sence to me yet.