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

Why doesnt the call scanf work?

1191


How to declare pointer variables?

1239


what does static variable mean?

1099


Why is this loop always executing once?

1054


What is the right type to use for boolean values in c? Is there a standard type?

1007


Explain how do you determine the length of a string value that was stored in a variable?

1150


Why structure is used in c?

1186


What is structure padding in c?

1129


Explain what are global variables and explain how do you declare them?

1161


In which layer of the network datastructure format change is done

1882


All technical questions

1987


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2464


Differentiate between full, complete & perfect binary trees.

1091


What is meant by inheritance?

1086


Write a program to reverse a linked list in c.

1121