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 does %c mean in c?

0 Answers  


Explain threaded binary trees?

0 Answers  


what is a static function

10 Answers   Satyam,


Differentiate between calloc and malloc.

0 Answers   Wipro,


What is Function Pointer? Explain with example?

3 Answers  






What is difference between scanf and gets?

0 Answers  


suppose we use switch statement and we intilize years name using enum statement like(jan,feb,mar,------dec) we take integer value as an input .question is that the month which we analyz is from 0 to 11 bt if i enter 12 than how he again starts from begning and print jan

1 Answers  


Program to find larger of the two numbers without using if-else,while,for,switch

11 Answers   iNautix, Wipro,


C program to read the integer and calculate sum and average using single dimensional array

0 Answers  


How can I read a directory in a C program?

2 Answers   Bright Outdoor, Wipro,


which operator having lowest precedence?? a.)+ b.)++ c.)= d.)%

4 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers  


Categories