Tuesday, 13 November 2012

Pointers in C in a nutshell!

Pointers are used for dynamic memory allocation in C, the quick overview:

int number = 54; //Assigns variable called number the value 54

int *pointme = 52; //Creates a pointer variable named pointme and assigns it a value of 52

int *pointme = &number; //Points pointme variable to the address in memory of the variable number

printf("Pointer address %p has a value %d", pointme, *pointme); //Print out the address and value of the pointer


  1. It is Hard to find knowledgeable people on This topic. Nevertheless, you've known as suspect everything is the results you are talking! Thank you 123 hp dj 3630 printer setup

  2. Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject. Laptop cũ giá rẻ