Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > DATA STRUCTURES, C, C++, VC ++ > ds. c , c++ Interview / Technical Questions
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

ds. c , c++ Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too.

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 23-01-07, 01:45 PM   #1 (permalink)
Moderator
 
GEEK's Avatar
 
Join Date: Nov 2006
Age: 25
Posts: 227
Thanks: 1
Thanked 12 Times in 9 Posts
Thanks: 1
Thanked 12 Times in 9 Posts
Rep Power: 6 GEEK is on a distinguished road GEEK is on a distinguished road
C language - What is a pointer value and address?

What is a pointer value and address?
GEEK is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-10-07, 09:40 PM   #2 (permalink)
Junior Member
 
Join Date: Oct 2007
Age: 21
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 phaneendra_vemuri is on a distinguished road
Re: C language - What is a pointer value and address?

* represents the value in the address and address is ..........address of the variable
phaneendra_vemuri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-10-07, 12:49 AM   #3 (permalink)
TAM
Senior Member
 
TAM's Avatar
 
Join Date: Oct 2006
Location: Mayiladurai (TN)
Posts: 233
Thanks: 8
Thanked 7 Times in 5 Posts
Thanks: 8
Thanked 7 Times in 5 Posts
Rep Power: 5 TAM is on a distinguished road
Re: C language - What is a pointer value and address?

pointer value is the value stored in a pointer i.e an address of a variable
Address - itself gives the memory location which contain an value of any type
TAM is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20-03-08, 12:24 PM   #4 (permalink)
Junior Member
 
Join Date: Sep 2007
Age: 25
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 2 gouriproutray is on a distinguished road
Re: C language - What is a pointer value and address?

basic thing is like other variable (....like int a here a is integer type variable which can hold an integer value.. when we define int a.. compiler allocates a memory 2 or 4 bytes and name it as a..when we assign value it places that value in that memory)
pointer is also a variable.the same thing the compiler does for pointer also..but the difference pointer and a normal variable is the pointer holds the address of other variable of its type..when we ask what is the value of a then its the value we have assigned to it..same thing when we ask what is the value of pointer then its the value we have assigned to it, but here the value is the address of other variable of its type..coming to address like other variable has some memory address..so since pointer is also a variable it also takes some address from memory
gouriproutray is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 26-03-08, 05:45 PM   #5 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 query123 is on a distinguished road
Re: C language - What is a pointer value and address?

pointer is a variable that hold the address of other variable.
it should be declared as
data type *pt_name
eg
int *p;//declare pointer p
p=&a;//address of variable a
v=*p;//v have tha value at address p
query123 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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


All times are GMT +6.5. The time now is 12:44 PM.





Search Engine Optimization by vBSEO 3.1.0