what is the difference between normal variables and pointer
variables..............

Answer Posted / mani

Normal variable:memory size of variables depends upon respective datatype; if int it'll take 2byte , char will take 1 byte.
Pointer variable:memory size of pointer variable is constant that is 4byte in gcc compiler irrespective of any datatype.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

636


What does the characters “r” and “w” mean when writing programs that will make use of files?

862


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

617


How can you find the day of the week given the date?

621


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1190






What is meant by initialization and how we initialize a variable?

590


Explain the use of fflush() function?

628


What is static memory allocation?

611


What are loops in c?

553


What are types of functions?

571


Tell us bitwise shift operators?

601


please send me the code for multiplying sparse matrix using c

1729


what is use of malloc and calloc?

1388


Explain union. What are its advantages?

621


How does pointer work in c?

623