IT Community - Software Programming, Web Development and Technical Support

pointer concept in C

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?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-14-2007, 12:49 AM
vigneshgets vigneshgets is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 904
vigneshgets is on a distinguished road
Cool pointer concept in C

Hui Guys can anyone Explain the pointer concept in c?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-14-2007, 01:03 AM
seesamjagan seesamjagan is offline
D-Web Programmer
 
Join Date: Aug 2007
Location: Chennai
Posts: 66
seesamjagan is on a distinguished road
Send a message via AIM to seesamjagan Send a message via Yahoo to seesamjagan
Post Re: pointer concept in C

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....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 09:36 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0