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

How do we select the big element or any other operation from array which is read dynamically. user need to give the elements only no need to mention the size.

0 Answers  


Write a code to generate a series where the next element is the sum of last k terms.

0 Answers   Aspiring Minds,


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

0 Answers   College School Exams Tests,


hi any body pls give me company name interview conduct "c" language only

0 Answers  


`write a program to display the recomended action depends on a color of trafic light using nested if statments

0 Answers  






Why is c called a mid-level programming language?

0 Answers  


Is c easier than java?

0 Answers  


can we implement multi-threads in c.

0 Answers  


How many bytes are occupied by near, far and huge pointers (dos)?

0 Answers  


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

0 Answers  


Write a program which returns the first non repetitive character in the string?

0 Answers   Expedia,


largest Of three Number using without if condition?

0 Answers  


Categories