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
Is there a way to compare two structure variables?
Give differences between - new and malloc() , delete and free() ?
What is a sequential access file?
How can I recover the file name given an open stream or file descriptor?
Explain how do you determine whether to use a stream function or a low-level function?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
What is the data segment that is followed by c?
What are the scope of static variables?
Is c call by value?
What are local variables c?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What are void pointers in c?
Define the scope of static variables.
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is cohesion in c?