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 |
hi send me sample aptitude papers of cts?
void main() { //char ch; unsigned char ch; clrscr(); for(ch =0;ch<= 127; ch++) printf(" %c= %d \t ", ch, ch); } output?
why do we use pointer instead directly acessing the data?
Write a program to find given number is even or odd without using any control statement.
what are the stages of compilation
What is the correct code to have following output in c using nested for loop?
print a "hello" word without using printf n puts in c language
while initialization of array why we use a[][2] why not a[2][]...?
YBJBU6
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
can we change the default calling convention in c if yes than how.........?
How can I read in an object file and jump to locations in it?