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 the main difference between calloc () and malloc ()?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
Explain what are global variables and explain how do you declare them?
How can you allocate arrays or structures bigger than 64K?
What does #pragma once mean?
What is f'n in math?
What is the advantage of a random access file?
Differentiate between declaring a variable and defining a variable?
What is uint8 in c?
Write a program to print all permutations of a given string.
What are terms in math?
What is a substring in c?
How can I swap two values without using a temporary?
When can you use a pointer with a function?
List the variables are used for writing doubly linked list program.