Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to write a data 10 in address location 0x2000

Answer Posted / vadivel t

The below line u can use for the question asked, provided
the address is not pointing to any OS memory, system files
or any location on ROM memory.

0x2000 is invalid address(Access voilation)in my system. So
I tried with the valid address 0x12FF70 to get the o/p.

main()
{
*(int *)(0x12FF70)= 20;
printf("%d \n",*(int *)(0x12FF70));
getch();
}

O/p would be 20.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does it mean when a pointer is used in an if statement?

1113


How is = symbol different from == symbol in c programming?

1052


What is spaghetti programming?

1145


Which is the memory area not included in C program? give the reason

1950


Subtract Two Number Without Using Subtraction Operator

858


What are the Advantages of using macro

1177


What are multibyte characters?

1138


Why main is not a keyword in c?

1260


What 'lex' does?

1190


Differentiate between declaring a variable and defining a variable?

1054


What is time null in c?

1080


What are identifiers in c?

1205


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

1072


Explain what is #line used for?

1075


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

1006