ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
What is external and internal variables
What is dynamic memory allocation
what is storage classes in C
 Question Submitted By :: Ang
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is external and internal variables What is dynamic memory allocation what is storage classes in C
Answer
# 1
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 ?    1 Yes 1 No
Rekha
 
  Re: What is external and internal variables What is dynamic memory allocation what is storage classes in C
Answer
# 2
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 ?    1 Yes 0 No
Ravi Saini
 
 
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Write a program to print this triangle: * ** * **** * ****** * ******** * ********** Don't use printf statements;use two nested loops instead. you will have to use braces around the body of the outer loop if it contains multiple statements.  1
How to implement variable argument functions ? HP1
how memory store byte Huawei3
f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error HCL3
main() { printf("hello%d",print("QUARK test?")); }  3
write a program to arrange the contents of a 1D array in ascending order  2
How can I access memory located at a certain address?  2
what is the stackpointer  2
what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means.... TCS1
what is the differnce between AF_INET and PF_INET? Wipro1
How many ways are there to swap two numbers without using temporary variable? Give the each logic.  4
what is real time system?what is the differance between hard and soft real time systems  1
write an interactive program to generate the divisors of a given integer. TCS2
what is the difference b/w compiler and debugger?  1
How do you write a program which produces its own source code as its output?  2
if a five digit number is input through the keyboard, write a program to calculate the sum of its digits. (hint:-use the modulus operator.'%')  5
11. Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage Accenture5
write a program to generate 1st n fibonacci prime number  1
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output? Hughes5
Write a program to accept a character & display its corrosponding ASCII value & vice versa?  3
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com