Answer Posted / vadivel t
The below line u can use for the question asked, provided
the address is not pointing to any OS memory, system files
or any location on ROM memory.
0x2000 is invalid address(Access voilation)in my system. So
I tried with the valid address 0x12FF70 to get the o/p.
main()
{
*(int *)(0x12FF70)= 20;
printf("%d \n",*(int *)(0x12FF70));
getch();
}
O/p would be 20.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does it mean when a pointer is used in an if statement?
How is = symbol different from == symbol in c programming?
What is spaghetti programming?
Which is the memory area not included in C program? give the reason
Subtract Two Number Without Using Subtraction Operator
What are the Advantages of using macro
What are multibyte characters?
Why main is not a keyword in c?
What 'lex' does?
Differentiate between declaring a variable and defining a variable?
What is time null in c?
What are identifiers in c?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
Explain what is #line used for?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list