Understanding Pointers In C By Yashwant Kanetkar Pdf -

Kanetkar is famous for practical drills. Here are two classic problems from "Understanding Pointers in C" that you should attempt before looking at the solution.

| Pointer Type | What It Can Point To | Typical Literal | |--------------|--------------------|-----------------| | int * | int objects | int *p; | | float * | float objects | float *f; | | char * | char objects (often strings) | char *s; | | void * | object (generic) | void *vp; (needs casting before dereferencing) | | type (*)(…) | Function returning type | int (*fp)(int) | understanding pointers in c by yashwant kanetkar pdf