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
Explain how does free() know explain how much memory to release?
What is difference between structure and union?
What are the advantage of c language?
What's the right way to use errno?
Why header files are used?
Is fortran faster than c?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What is malloc return c?
can we change the default calling convention in c if yes than how.........?
swap 2 numbers without using third variable?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
explain how do you use macro?
What was noalias and what ever happened to it?
What are the types of type qualifiers in c?
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