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

Does c have class?

606


If null and 0 are equivalent as null pointer constants, which should I use?

573


What are qualifiers in c?

568


What is the best organizational structure?

635


The statement, int(*x[]) () what does in indicate?

640






Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1452


How can I get the current date or time of day in a c program?

645


Why do some versions of toupper act strangely if given an upper-case letter?

627


All technical questions

1502


Does c have enums?

592


What does p mean in physics?

577


What are the key features in c programming language?

602


Describe the order of precedence with regards to operators in C.

628


Is a house a shell structure?

688


What is the difference between array_name and &array_name?

768