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

Is it possible to pass an entire structure to functions?

563


What is the meaning of typedef struct in c?

598


What is the general form of #line preprocessor?

590


Does free set pointer to null?

566


What are operators in c?

586






Explain what is the purpose of "extern" keyword in a function declaration?

625


What are static variables in c?

631


Why & is used in c?

715


Differentiate between static and dynamic modeling.

623


Write a program to reverse a string.

644


What are the advantages and disadvantages of a heap?

716


Define and explain about ! Operator?

617


Describe dynamic data structure in c programming language?

608


What are multidimensional arrays?

656


Explain the process of converting a Tree into a Binary Tree.

2109