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 find the size of the data type like int,float
without using the sizeof operator?

Answer Posted / vishnu948923

void main()
{
char *ptr1,*ptr2;
float fl;
ptr1 = &fl;
ptr2 = (&fl+1);

printf("%u",ptr2-ptr1);
}

Is This Answer Correct ?    29 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the easiest sorting method to use?

1243


What are the complete rules for header file searching?

1132


Do string constants represent numerical values?

1448


What does the format %10.2 mean when included in a printf statement?

1709


What is the purpose of sprintf?

1206


What is the -> in c?

1066


Which function in C can be used to append a string to another string?

1274


What is string concatenation in c?

1138


What is New modifiers?

1185


What are the 32 keywords in c?

1140


What is cohesion and coupling in c?

1096


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1838


Why is event driven programming or procedural programming, better within specific scenario?

2485


What is default value of global variable in c?

1051


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2248