What is the real time usage volatile?

Answers were Sorted based on User's Feedback



What is the real time usage volatile?..

Answer / stylish_312

volatile int i=10;
main()
{
fun()
{
while(i==10)
{
...
}
printf("This will print..\n");
}
}
ANS:
if we are not using volatile int ,the loop will be keep on
exeecuting,so printf statement will not print...to break
this loop declare the variable as a volatile....

Is This Answer Correct ?    8 Yes 2 No

What is the real time usage volatile?..

Answer / braja28

that is one type of temporary storage

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

hi send me sample aptitude papers of cts?

0 Answers  


void main() { //char ch; unsigned char ch; clrscr(); for(ch =0;ch<= 127; ch++) printf(" %c= %d \t ", ch, ch); } output?

4 Answers   Groupon,


why do we use pointer instead directly acessing the data?

2 Answers  


Write a program to find given number is even or odd without using any control statement.

2 Answers  


what are the stages of compilation

1 Answers   Bosch,






What is the correct code to have following output in c using nested for loop?

0 Answers  


print a "hello" word without using printf n puts in c language

6 Answers  


while initialization of array why we use a[][2] why not a[2][]...?

0 Answers   Aptech,


YBJBU6

1 Answers  


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

0 Answers  


can we change the default calling convention in c if yes than how.........?

0 Answers   Aptech,


How can I read in an object file and jump to locations in it?

0 Answers  


Categories