how to write a data 10 in address location 0x2000

Answer Posted / vishnu

int main()
{
int *ptr;
ptr = (int *)0x2000;
*ptr = 10;
printf("%d", *ptr);
}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between fread and fwrite function?

851


Is the exit() function same as the return statement? Explain.

856


What are pointers? What are different types of pointers?

828


What library is sizeof in c?

819


How can I call fortran?

816


What is the use of function in c?

922


What is a struct c#?

783


What is the scope of an external variable in c?

778


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

833


Tell us something about keyword 'auto'.

843


Simplify the program segment if X = B then C ← true else C ← false

2801


What is double pointer in c?

771


Why cant I open a file by its explicit path?

810


Can we change the value of constant variable in c?

818


Why do we need volatile in c?

945