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...

void main()
{
int *ptr;
ptr = (int *) 0x400 ;
printf("ptr=%d",ptr);


}
output?

Answer Posted / koti

Ans is 1024.
Why because here ptr is pointing to integer address 0x400.this is hexadecimal address but you are printing decimal value.
The hexadecimal value is
........0000 0100 0000 0000
2 power10 =1024.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is NULL pointer?

1039


What are the functions to open and close file in c language?

1130


The difference between printf and fprintf is ?

1212


how could explain about job profile

1856


what is stack , heap ,code segment,and data segment

2632


Is c weakly typed?

967


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1242


What is the purpose of ftell?

1033


How do you redirect a standard stream?

1049


What is the difference between malloc calloc and realloc in c?

1069


Define C in your own Language.

1032


Explain the meaning of keyword 'extern' in a function declaration.

1113


What is scope of variable in c?

990


When should the const modifier be used?

1059


Explain main function in c?

1044