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
What is %d called in c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What is the difference between c and python?
What are the different types of constants?
How many types of functions are there in c?
What is memcpy() function?
Can you please explain the scope of static variables?
Why dont c comments nest?
What is uint8 in c?
What is a lookup table in c?
What is meant by type specifiers?
Explain what is the advantage of a random access file?
write a c program to find the sum of five entered numbers using an array named number
What is the function of multilevel pointer in c?
How to throw some light on the b tree?