What is the real time usage volatile?
Answers were Sorted based on User's Feedback
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 |
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.
Write a code to generate a series where the next element is the sum of last k terms.
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
`write a program to display the recomended action depends on a color of trafic light using nested if statments
Why is c called a mid-level programming language?
Is c easier than java?
can we implement multi-threads in c.
How many bytes are occupied by near, far and huge pointers (dos)?
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 ].
Write a program which returns the first non repetitive character in the string?
largest Of three Number using without if condition?