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 to establish connection with oracle database software from c language?
Tell about strtok & strstr functions
2 Answers HCL, iFlex, Motorola,
WAP – represent a char in binary format
#include<stdio.h> #include<conio.h> struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.
how logic is used
What is maximum size of array in c?
How to delete a node from linked list w/o using collectons?
how to find the size of the data type like int,float without using the sizeof operator?
without using control structures and control structures find the max and min of given 2 nos
In header files whether functions are declared or defined?
What is c standard library?
write a programme that inputs a number by user and gives its multiplication table.