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 bit fields in c?

1700


What does char * * argv mean in c?

1053


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6861


what is bit rate & baud rate? plz give wave forms

1976


What is string in c language?

1144


How to set file pointer to beginning c?

1200


What is a structure and why it is used?

1217


Can a pointer be static?

1070


Explain the difference between strcpy() and memcpy() function?

993


Write a code of a general series where the next element is the sum of last k terms.

1037


What is the role of this pointer?

1068


What does the c preprocessor do?

1102


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

1180


What are linked lists in c?

1125


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2104