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 is c token?

1036


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1024


How is a null pointer different from a dangling pointer?

985


What is I ++ in c programming?

1081


What are structural members?

976


The statement, int(*x[]) () what does in indicate?

1105


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

2080


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2546


Explain how can I prevent another program from modifying part of a file that I am modifying?

1055


What is #include stdio h and #include conio h?

1066


What is LINKED LIST? How can you access the last element in a linked list?

1041


What is pointer to pointer in c?

1085


What is the difference between ++a and a++?

1163


How can you avoid including a header more than once?

945


Does c have circular shift operators?

1204