what is difference between declaring the pointer as int and
char in c language?
Answer Posted / abhay3023
The first obvious difference is char pointer will store address of character variable and same way integer pointer will store address of integer variable.
But the main difference you will feel when do increment on both these pointers, integer pointer will get incremented by 4 bytes and character pointer will get incremented by 1 bytes.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can a void pointer point to a function?
How #define works?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What is a far pointer in c?
Explain what are the different data types in c?
In which language linux is written?
How to declare a variable?
What is the difference between memcpy and memmove?
What is string function c?
Describe the order of precedence with regards to operators in C.
What is c definition?
Why #include is used in c language?
What is c basic?
What do you mean by keywords in c?
what are non standard function in c