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
What are the disadvantages of c language?
What are the types of assignment statements?
Explain two-dimensional array.
What are conditional operators in C?
When should you use a type cast?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Why isnt any of this standardized in c?
Can static variables be declared in a header file?
what is the role you expect in software industry?
Explain about the functions strcat() and strcmp()?
Write a program of advanced Fibonacci series.
What are the loops in c?
Explain the use of fflush() function?
What is the general form of function in c?