Are pointers integers in c?



Are pointers integers in c?..

Answer / Ratan Singh

No, a pointer is not an integer. While a pointer variable stores the memory address of another variable as an integer value, it has its own data type (e.g., int*, char*, etc.) and should be treated differently from integer variables.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Explain about the constants which help in debugging?

1 Answers  


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1 Answers   HCL,


printf("%d",(printf("Hello")); What it returns?

32 Answers   TCS,


What is a program flowchart?

1 Answers  


Explain the difference between the local variable and global variable in c?

1 Answers  


What is a lvalue

1 Answers   Global Logic,


Does c have circular shift operators?

1 Answers  


What is memcpy() function?

1 Answers  


Explain the difference between fopen() and freopen().

2 Answers  


How many levels of indirection in pointers can you have in a single declaration?

1 Answers   Agilent, ZS Associates,


Difference between Shallow copy and Deep copy?

1 Answers  


What is maximum size of array in c?

1 Answers  


Categories