what is difference b/w extern & volatile variable??
Answer Posted / anonimos
volatile variables are used on RT Embedded systems to
interface a physical memory mapped/IO mapped cell on the
computer board (volatile pointer).
Example define IO port:
#define PortA (*(volatile unsigned char *)0x3b)
unsigned char inputValue=PortA;
optimization may attempt to perform paging to hard drive of
to cache or even CPU registers so when reading from the
physical location in Mem/IO space the program will actually
read old value that was paged/cached by optimization
algorithm of the computer/board, even after the Input
changed on this Memory/IO cell.
volatile instruct the compiler to prevent optimization by
caching to registers/cache.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can I open files mentioned on the command line, and parse option flags?
Write a program to print ASCII code for a given digit.
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
Do you know what are bitwise shift operators in c programming?
how to introdu5ce my self in serco
Does c have circular shift operators?
What are the scope of static variables?
What is the condition that is applied with ?: Operator?
What is the main difference between calloc () and malloc ()?
What is binary tree in c?
How do I round numbers?
Explain what are compound statements?
What does char * * argv mean in c?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }