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
How do you list a file’s date and time?
What is an lvalue?
Why ca not I do something like this?
What does typedef struct mean?
Where register variables are stored in c?
What is #define?
If I have a char * variable pointing to the name of a function ..
What do you mean by keywords in c?
What is the use of clrscr?
Can we assign string to char pointer?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
How many types of arrays are there in c?
What is printf () in c?
Explain why c is faster than c++?
Write a program to print factorial of given number using recursion?