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 is a stream in c programming?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
Write a simple code fragment that will check if a number is positive or negative.
What is the difference between variable declaration and variable definition in c?
Explain what is page thrashing?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
What is page thrashing?
What is the benefit of using const for declaring constants?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
What is the maximum no. of arguments that can be given in a command line in C.?
What does typeof return in c?
Do pointers take up memory?
What happens if header file is included twice?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
Tell me what is null pointer in c?