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 volatile, register definition in C

908


What are file streams?

792


What is spaghetti programming?

904


Was 2000 a leap year?

851


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

899


Explain how can I pad a string to a known length?

920


What is array of structure in c programming?

1040


What is difference between structure and union with example?

841


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

856


How can you determine the maximum value that a numeric variable can hold?

924


What does main () mean in c?

879


What is the difference between a function and a method in c?

832


What are the types of type specifiers?

824


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2549


Explain what is a stream?

823