Question:
Are pointers integers?
Answer:
No, pointers are not integers.A pointer is an address.It is merely a positive number and not an integer. Source: CoolInterview.com
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. Source: CoolInterview.com
Answered by: shane | Date: 12/14/2007
| 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. Source: CoolInterview.com
Answered by: phani karthik | Date: 1/30/2008
| 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.<br><br><br> Source: CoolInterview.com
Answered by: deepak kamboj | Date: 6/5/2009
| 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. Source: CoolInterview.com
Answered by: hussain | Date: 7/8/2009
| Contact hussain
pointer is an unsigned integer ranging from 0 to 65535 Source: CoolInterview.com
Answered by: payal | Date: 7/21/2009
| Contact payal
yes,the pointers are unsigned integers carry the address of a variable Source: CoolInterview.com
Answered by: sofia | Date: 7/30/2009
| Contact sofia
Address holds only +ve numbers,so the pointer is a integer.<br> Source: CoolInterview.com
Answered by: Praveen Shintre | Date: 8/28/2009
| 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.<br> Source: CoolInterview.com
Answered by: govind | Date: 9/16/2009
| Contact govind
Yes,pointers are integers because pointer contain address of other variable & that address must be + integers Source: CoolInterview.com
Answered by: Amol Patil | Date: 10/5/2009
| Contact Amol Patil
pointers are unsigned integers,that's why in print fun we use %u access address Source: CoolInterview.com
Answered by: Ravi | Date: 11/17/2009
| Contact Ravi
no not at all, its a huge misunderstanding who telling it as an integer.<br> let me explain: suppose we declare int a=12;<br>int *ptr;<br>so from the above it is clear that "ptr" is a pointer which holds the address of a integer type variable.that doesn't meant that "ptr" is an integer pointer , bcoz we know pointers are always untyped.as the address is a whole no and 2BYTE is sufficient to hold the address.<br> e.g float a=10;<br> float *ptr; <br>so here it means "ptr"is a pointer which hold the address of floating type variable.(and again 2BYTE will be allocated) Source: CoolInterview.com
Answered by: PRASANNA KUMAR DAS | Date: 4/8/2010
| Contact PRASANNA KUMAR DAS
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|