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
Explain the advantages and disadvantages of macros.
Is return a keyword in c?
Can we declare variable anywhere in c?
Why enum is used in c?
Explain what is the difference between a string and an array?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
When should we use pointers in a c program?
What is array of pointers to string?
what is different between auto and local static? why should we use local static?
What is the explanation for cyclic nature of data types in c?
What is function what are the types of function?
Write a c program to demonstrate character and string constants?
Explain the difference between call by value and call by reference in c language?
What tq means in chat?
Is printf a keyword?