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 |
void main() { int i=5; printf("%d",i++ + ++i); }
What is an endless loop?
what is difference between array of characters and string
In C language, a variable name cannot contain?
ASCII stands for
What is static memory allocation?
What are the different types of C instructions?
How to reverse a linked list
1 Answers Aricent, Fidelity, IBM, TCS,
i want explaination about the program and its stack reprasetaion fibbo(int n) { if(n==1 or n==0) return n; else return fibbo(n-1)+fibbo(n-2); } main() { fibbo(6); }
how to find the given number is prime or not?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
What is the memory allocated by the following definition ? int (*x)[10];