Professional Documents
Culture Documents
Pointers in C in Simplified Manner
Pointers in C in Simplified Manner
Agenda
Pointers Arrays Strings
What is a pointer?
Pointer is simply a variable holding an address of some other data E.g. struct node *ptr;
struct node
ptr
0x12354320
Size of Pointers
Should it depend on the type of data pointed to? Contemplate on sizeof_ptr1.c
Array
What if less number of initializers?
int arr[6] = { 10, 20, 30};
Thank you
Note: It is only a sample, and does not cover the subject exhaustively Feedback invited at http://vikasnagpal.wordpress.com/