This is a discussion on pointer concept in C within the C and C++ Programming forums, part of the Software Development category; Hui Guys can anyone Explain the pointer concept in c?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Variable is nothing but a name given to a specific memory location where we store some value A Pointer is also a special variable in which we store the address of a memory location int x; // hereb 'x' is a name given to some memory location (for eg. 6644) int *p; // A pointer variable which can hold the address of an integer x = 10 // storing the value '10' in memory(6644) via the name 'x' p = &x// storing the address of 'x' in 'p' (ie., p = 6644) *p = 20 // storing 20 in the address 6644 via p, a pointer to the address & - address of * - value at p = &x // ie., p holds the 'address of' 'x' *p = 20 // 'value at' address 'p'(6644) is 20
__________________ SeeSamJagan- Sky is not the "LIMIT", Death is not the END, There is still something beyond.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Concept of Release Management | vigneshgets | Quality Engineering and Methodologies | 1 | 04-23-2008 10:05 PM |
| Paging Concept in Repeater? | poornima | ASP and ASP.NET Programming | 1 | 03-21-2008 09:48 PM |
| Smart Pointer | sundarraja | C and C++ Programming | 1 | 07-25-2007 06:06 AM |
| Why pointer can't use in Java | vadivelanvaidyanathan | Java Programming | 4 | 07-16-2007 11:23 PM |
| Concept of the SEI CMM 5 | vadivelanvaidyanathan | Quality Engineering and Methodologies | 0 | 03-22-2007 03:49 AM |