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 |
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
increment operateor (++)and decrament(--) #include<stdio.h> #inclide<conio.h> main() { int x=15; while(x!=0) scanf("%d",&x); {
Is it better to use a macro or a function?
Why clrscr is used after variable declaration?
Can two or more operators such as and be combined in a single line of program code?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
How can a program be made to print the name of a source file where an error occurs?
An interactive c program to read basic salary of 15 persons. each person gets 25% of basic as HRA, 15%of basic as conveyance allowances, 10%of basic as entertainment allowances.The total salary is calculated by adding basic+HRA+CA+EA.Calculate how many out of 15 get salary above 10,000.Rs also print the salary of each employee
Without Computer networks, Computers will be half the use. Comment.
Can a program have multiple main() functions?
sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above