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

How can I delete a file?

1060


What is the difference between a function and a method in c?

1079


Why is c used in embedded systems?

1114


how can I convert a string to a number?

1082


What kind of structure is a house?

1038


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

2422


Here is a good puzzle: how do you write a program which produces its own source code as output?

1093


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

2000


What is abstract data structure in c?

1037


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1217


what are bit fields? What is the use of bit fields in a structure declaration?

2119


When is a “switch” statement preferable over an “if” statement?

1138


What are c header files?

990


Write a program of prime number using recursion.

1082


in linking some of os executables are linking name some of them

2126