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
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
Is there a way to switch on strings?
What are the application of void data type in c?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
How can I do graphics in c?
What is queue in c?
what do u mean by Direct access files? then can u explain about Direct Access Files?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
What are predefined functions in c?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Can a pointer be volatile in c?
What is the process to create increment and decrement stamen in c?
When should the volatile modifier be used?
Which control loop is recommended if you have to execute set of statements for fixed number of times?