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 pure virtual function and virtual function?

659


Tell us the use of fflush() function in c language?

655


How many levels of pointers can you have?

715


What is the scope of static variables in c language?

641


What does int main () mean?

563






Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

698


What are the types of type specifiers?

631


What does 3 periods mean in texting?

612


What does malloc () calloc () realloc () free () do?

576


Explain the difference between structs and unions in c?

593


Why can't I perform arithmetic on a void* pointer?

646


What is a far pointer in c?

611


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1728


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

672


What are the different types of errors?

656