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


Please Help Members By Posting Answers For Below Questions

What is %d called in c?

941


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1927


What is the difference between c and python?

803


What are the different types of constants?

830


How many types of functions are there in c?

795


What is memcpy() function?

840


Can you please explain the scope of static variables?

794


Why dont c comments nest?

832


What is uint8 in c?

876


What is a lookup table in c?

820


What is meant by type specifiers?

877


Explain what is the advantage of a random access file?

894


write a c program to find the sum of five entered numbers using an array named number

1864


What is the function of multilevel pointer in c?

837


How to throw some light on the b tree?

811