how to write a data 10 in address location 0x2000

Answer Posted / vatsava

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a variable be both static and volatile in c?

825


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2812


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

849


write a program to copy the string using switch case?

2654


What does the format %10.2 mean when included in a printf statement?

1382


Where define directive used?

845


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1075


How can I convert a number to a string?

861


What are the c keywords?

989


What is realloc in c?

846


When should I declare a function?

841


write a program to find out prime number using sieve case?

1883


Why pointers are used in c?

789


How are pointers declared in c?

827


What is malloc return c?

812