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 |
Can stdout be forced to print somewhere other than the screen?
Do you know what is the purpose of 'extern' keyword in a function declaration?
Describe advantages and disadvantages of the various stock sorting algorithms
write a C code to reverse a string using a recursive function, without swapping or using an extra memory.
9 Answers Motorola, TCS, Wipro,
explain how do you use macro?
what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }
Is there a way to compare two structure variables?
main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }
11 Answers HCL, Vector, Vector India, Vector Solutions, Wipro,
I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.
what are the uses of structure?
What are Macros? What are its advantages and disadvantages?
Please write me a program to print the first 50 prime numbers (NOT between the range 1 -50)