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

What are enumerated types?

657


What is malloc calloc and realloc in c?

673


What is function prototype?

613


shorting algorithmS

1805


Why c is a mother language?

560






difference between native and cross compilers

1673


What are the advantages and disadvantages of a heap?

716


Explain what is the stack?

638


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

672


Explain how to reverse singly link list.

611


How do I round numbers?

604


What is string function in c?

544


How do I swap bytes?

634


Why do we need volatile in c?

750


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

811