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...

write a program for size of a data type without using
sizeof() operator?

Answer Posted / desh deepak

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

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

Is This Answer Correct ?    18 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 types of programming language?

1065


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3863


Why use int main instead of void main?

1075


What is the size of enum in c?

1070


Do you know the difference between exit() and _exit() function in c?

1020


Are negative numbers true in c?

1008


What is scanf () in c?

1066


Explain what is the benefit of using an enum rather than a #define constant?

1181


What is the use of getchar functions?

1141


Explain the term printf() and scanf() used in c language?

1010


Why shouldn’t I start variable names with underscores?

1016


What are actual arguments?

1053


Write a program of prime number using recursion.

1042


How do you sort filenames in a directory?

1130


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2027