CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS LANGUAGES C DETAILS
Question :
Are pointers integers?
Category C Interview Questions
Rating (4.2) By 14 users
Added on 10/22/2004
Views 11567
Rate it!
Answers:

No, pointers are not integers.A pointer is an address.It is merely a positive number and not an integer.



The answer above does not make sense. All positive numbers ARE integers. Just because a pointer is never negative doesn't mean it is not an integer. That's like say 1 is not an integer because it is merely a positive number.



 Posted by: shane    

Contact shane  Contact shane

yes.pointer is an integer because it stores the address value of other variable. Actually its a subset of integers because it contains only +ve values. But note that all the integers are not pointers.



 Posted by: phani karthik    

Contact phani karthik  Contact phani karthik

yes pointer is an integer because it stores the address value of other variable. Actually its a subset of integers because it contains only +ve values. But note that all the integers are not pointers.




 Posted by: deepak kamboj    

Contact deepak kamboj  Contact deepak kamboj

Pointers are integers.Pointers are memory addresses and can take any Positive integer value.It is a refrence to a memory location so it can;t be nagetive.In short all Pointer values are integer values.



 Posted by: hussain    

Contact hussain  Contact hussain

pointer is an unsigned integer ranging from 0 to 65535



 Posted by: payal    

Contact payal  Contact payal

yae,the pointers are unsigned integers carry the addres of a variable



 Posted by: sofia    

Contact sofia  Contact sofia

Address holds only +ve numbers,so the pointer is a integer.



 Posted by: Praveen Shintre    

Contact Praveen Shintre  Contact Praveen Shintre

Yes Pointers are Integer. Pointer means what it points to some other object. Pointer any how contain some address in your memory and address are always Integer.



 Posted by: govind    

Contact govind  Contact govind

Yes,pointers are integers because pointer contain address of other variable & that address must be + integers



 Posted by: Amol Patil    

Contact Amol Patil  Contact Amol Patil

pointers are unsigned integers,that's why in print fun we use %u access address



 Posted by: Ravi    

Contact Ravi  Contact Ravi


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
How are pointer variables initialized?
View Answer
What is static memory allocation and dynamic memory allocation?
View Answer
What is the purpose of realloc( )?
View Answer
Difference between arrays and pointers?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL C Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/964/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.61