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?



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

Answer / 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

More C Interview Questions

what is the flow of execution in cprogram? ex:printf();,scanf();

2 Answers  


What is the process to create increment and decrement stamen in c?

0 Answers  


What is the need of structure in c?

0 Answers  


What is main () in c?

0 Answers  


what are advantages of U D F?

1 Answers   Google,


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

0 Answers  


What functions are used for dynamic memory allocation in c language?

0 Answers  


What is the size of enum in c?

0 Answers  


What is C++

4 Answers  


What is the basic structure of c?

0 Answers  


which types of data structure will i use to convert infix to post fix???

5 Answers   IIT,


What do you mean by a local block?

0 Answers   InterGraph,


Categories