what is difference between declaring the pointer as int and
char in c language?
Answer Posted / k vishwanath pillay
While declaring Pointer for an Integer value, we assign a
default size i.e 4 byte of memory for the Integer variable.
But in the case of char by default it assigns 1 byte of
memory for that character variable.
The type of declaration is the same for both.
Char a[5], *p; // for char variable
int *i; // for Int variable
| Is This Answer Correct ? | 5 Yes | 10 No |
Post New Answer View All Answers
Is calloc better than malloc?
Why is structure important for a child?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Difference between pass by reference and pass by value?
What is %d used for?
What is function prototype in c language?
How do we declare variables in c?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What are structure types in C?
What is wrong with this program statement? void = 10;
Is it possible to pass an entire structure to functions?
What are categories used for in c?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
What is this infamous null pointer, anyway?