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

Explain the difference between getch() and getche() in c?

1051


If errno contains a nonzero number, is there an error?

1432


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

1070


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1127


What is s in c?

1097


What are the loops in c?

1052


When is a null pointer used?

1170


what is the diffrenet bettwen HTTP and internet protocol

1884


Write a C program in Fibonacci series.

1137


Are comments included during the compilation stage and placed in the EXE file as well?

1127


Explain how can I prevent another program from modifying part of a file that I am modifying?

1142


How do you initialize pointer variables?

1151


How can I write a function analogous to scanf?

1233


Why c is called procedure oriented language?

1106


What is the difference between call by value and call by reference in c?

1212