What is external and internal variables
What is dynamic memory allocation
what is storage classes in C

Answer Posted / ravi saini

External variable -- Variable that one going to be access
from another source file.Have life cycle for complete project.

Internal variable -- variable that one have the life cycle
for the particular block.

Dynamic memory allocation --Allocation of memory during RUN
time.

Storage Class --

Automatic : by default
Register : Use to access registers of CPU.If register is not
free than work as automatic.
Static : Have life cycle for whole project but access only
with in the initialized function block.Once initialized.
extern : above

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of variables in c?

781


Why c is procedure oriented?

793


What is strcpy() function?

872


How do you initialize pointer variables?

820


Write a code on reverse string and its complexity.

795


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

854


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

1491


Differentiate between a for loop and a while loop? What are it uses?

925


Give basis knowledge of web designing ...

1785


what is the basis for selection of arrays or pointers as data structure in a program

4052


What is action and transformation in spark?

843


What is an operator?

855


Explain setjmp()?

834


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

940


Is there anything like an ifdef for typedefs?

905