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


Please Help Members By Posting Answers For Below Questions

What are the disadvantages of c language?

611


What are the types of assignment statements?

622


Explain two-dimensional array.

619


What are conditional operators in C?

618


When should you use a type cast?

583






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

652


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.

1515


Why isnt any of this standardized in c?

629


Can static variables be declared in a header file?

607


what is the role you expect in software industry?

1645


Explain about the functions strcat() and strcmp()?

596


Write a program of advanced Fibonacci series.

702


What are the loops in c?

589


Explain the use of fflush() function?

618


What is the general form of function in c?

607