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 / arun kumar mishra kiit univers

#include<stdio.h>
#include<conio.h>
void main()
{
float f1,*Ptr1,*Ptr2;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",(char *)ptr2-(char *)ptr1);
getch();
}

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

1001


what does static variable mean?

1066


how many key words availabel in c a) 28 b) 31 c) 32

1019


Explain what is the advantage of a random access file?

1077


How can variables be characterized?

2141


What is extern storage class in c?

954


What is n in c?

982


What is the explanation for cyclic nature of data types in c?

1153


Define the scope of static variables.

1075


Explain what are header files and explain what are its uses in c programming?

1122


What are the standard predefined macros?

1084


What are shell structures used for?

994


What is structure packing in c?

1033


In which header file is the null macro defined?

1316


Is linux written in c?

1002