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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / rekha

Dynamic allocation is a pretty unique feature to C (amongst
high level languages). It enables us to create data types
and structures of any size and length to suit our programs
need within the program.

storage classes

auto
register
static
extern
typedef

Is This Answer Correct ?    5 Yes 2 No

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

Answer / s.gayathri

1.external variables can use it anywhere in the pgm &outside
the pgm.
internal variables can use only in the pgm.
2.allocation of memory during run time.it also save memory
space.
3.storage classes are type of variable.it has four type
global
extern
static
register

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

What are header files why are they important?

0 Answers  


a program that can input number of records and can view it again the record

0 Answers   Accenture,


the format specified for hexa decimal is a.%d b.%o c.%x d.%u

7 Answers   TCS,


What are the advantages of using Unions?

0 Answers   IBS,


main() { int x=5,y=10,z=0; x=x++ + y++; y=y++ + ++x; z=x++ + ++y; printf("%d%d%d\n",x,y,z); }

1 Answers   CodeChef,


write a program to print data of 5 five students with structures?

0 Answers  


Can a variable be both constant and volatile?

0 Answers  


what is the difference between const char *p, char const *p, const char* const p

5 Answers   Accenture, Aricent, CTS, Geometric Software, Point Cross, Verizon,


Do you know the purpose of 'register' keyword?

0 Answers  


Can a file other than a .h file be included with #include?

0 Answers   Aspire, Infogain,


What is multidimensional arrays

0 Answers  


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

0 Answers  


Categories