Sunday, August 2, 2009

C programming!!!help!!!?

i cant understand clearly the uses of pointers arrays...what are macros??the preprocessor statements??





please briefly explain these to me...or give me some very USEFUL links....





thank you very much!!

C programming!!!help!!!?
Hint: google.com is very useful.





Macros: http://gcc.gnu.org/onlinedocs/cpp/Macros... %26gt;%26gt; found with "C Macros"


Preprocessor: http://gcc.gnu.org/onlinedocs/cpp/ %26gt;%26gt; found with "C Preprocessor"


Pointers and Arrays: http://c-faq.com/ %26gt;%26gt; I know this one but Google will get it for you as it is ridiculously popular and well known
Reply:pointer-it is a variable which stores the address of the that variable to which it points.


for eg-int*j


j=%26amp;a;


now when you print j it wiil show you the address of a


and when you print *j it will show you the value of a.





arrays -the are used to store various values of same data type under common variable name.





macro-you can type a name in a program and define it above void main.during compilation where ever the name ccurs the definition is placed tis is macro.





what i would suggest you isif u live in india then you buy yashavant kanetkar(let us c) if you are a bigenner.





if you want to form strong basis in pointers you should go for-


pointers in c(yashavant kanetkar).it is a thin book.





the books r written in easy language.


90% computer studying college students(Indian) recommend this book for beginners.

magnolia

No comments:

Post a Comment