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

Why should I use standard library functions instead of writing my own?

966


What will be the outcome of the following conditional statement if the value of variable s is 10?

1053


Write a program to reverse a linked list in c.

866


What is data structure in c programming?

817


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

866


Why do we use stdio h and conio h?

852


Are the variables argc and argv are local to main?

1013


What is void c?

780


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2315


What is main function in c?

789


What library is sizeof in c?

821


Explain the use of fflush() function?

854


What is volatile variable in c?

869


Write the control statements in C language

874


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

2509