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 the use of keyword volatile??
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the use of keyword volatile??
Answer
# 1
volatile keyword is a one in which assigns some garbage 
value to the variables declared with this keyword.......... 
before assigning some values by the user to the variables.
 
Is This Answer Correct ?    1 Yes 6 No
Vignesh1988i
 
  Re: what is the use of keyword volatile??
Answer
# 2
Volatile qualifier indicates to the compiler that the
variable can be modified at any stage of the program
execution. This can happen even if the region of code being
executed might not have any access to the variable in
question. In that sense, Volatile qualifier does the
opposite of the Const qualifier.
@Vignesh1988i -> Volatile qualifier does not assign any
garbage value to the variable.
 
Is This Answer Correct ?    7 Yes 0 No
Kishor Narayan
 
 
 
  Re: what is the use of keyword volatile??
Answer
# 3
if you use volatile variables then code optimization will
not happen at compilation time, so .o size will be more.
 
Is This Answer Correct ?    0 Yes 0 No
Pur
 
  Re: what is the use of keyword volatile??
Answer
# 4
it is the variable which can be modified outside of the 
program. i.e hardwares can modify this variable. To avoid 
compiler optimization we can use volatile.
this is used for memory mapped hardware and shared memory 
usuage.
 
Is This Answer Correct ?    0 Yes 0 No
Kala
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is the use of #pragma pack, wer it is used? Wipro1
Write a program to generate prime factors of a given integer?  3
Write a program in c to input a 5 digit number and print it in words.  1
How can we see the Expanded source code and compiled code for our source program in C?  1
which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT; TCS5
what is the difference between strcpy() and memcpy() function?  1
how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y TCS3
what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green") Cadence4
to find out the reverse digit of a given number Infosys5
How do I initialize a pointer to a function?  2
int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output? Verifone14
How would you print out the data in a binary tree, level by level, starting at the top? Microsoft4
How can I convert integers to binary or hexadecimal?  2
main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }  5
write a program to arrange the contents of a 1D array in ascending order  3
Program to write some contents into a file using file operations with proper error messages.  1
program to get the remainder and quotant of given two numbers with out using % and / operators? IBM8
two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast. Verifone5
write a function for strtok()?? Verifone1
what is compiler  5
 
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