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
Why double pointer is used in c?
Why can arithmetic operations not be performed on void pointers?
What is volatile variable in c with example?
Is multithreading possible in c?
What are the c keywords?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
What is #include called?
Is malloc memset faster than calloc?
What is void main () in c?
What are disadvantages of C language.
What is the maximum no. of arguments that can be given in a command line in C.?
What are the restrictions of a modulus operator?
Describe static function with its usage?
Tell me about low level programming languages.
What is static identifier?