What are volatile variables?
Answer / manoj
Volatile variable will be used when we are dealing with
external memory, external device and interrupt service
routine. In these situation if some variable needs update
or gets update without user knowledge in that case variable
should be declared as VOLATILE. otherwise we may loose
these update.
| Is This Answer Correct ? | 8 Yes | 1 No |
Give differences between - new and malloc() , delete and free() ?
Explain what will the preprocessor do for a program?
accept character from keyboard untill the user presses the enter key.If the user enters any character other than upper case(A-Z)alphabets program should stop taking any input
enum { SUNDAY, MONDAY, TUESDAY, }day; main() { day =20; printf("%d",); getch(); } what will be the output of the above program
What is the difference between void main and main in c?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
List the difference between a While & Do While loops?
Do you have any idea about the use of "auto" keyword?
What is a structure member in c?
Write a program for Overriding.
WAP that prints the number from 1 to 100. but for multiplies of three print "XXX" instead of the number and for the multiplies of five print "YYY" . for number which are multiplies of both three and five print "ZZZ"
How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.