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 / prasad

I think this code is execute in turbo c/c++ perfectly.
#inclde<stdio.h>
#include<conio.h>
void main()
{
int a,b;
float x,y;
clrscr();
a=(int)&x;
b=(int)&y;
printf("%d",b-a);
getch();
}

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

difference between native and cross compilers

2089


Explain what math functions are available for integers? For floating point?

1070


What are the 4 types of unions?

998


c language interview questions & answer

1913


Explain how can I remove the trailing spaces from a string?

1003


What are unions in c?

989


write an algorithm to display a square matrix.

2655


What is use of bit field?

1243


What are the application of c?

1054


If null and 0 are equivalent as null pointer constants, which should I use?

1136


What are different storage class specifiers in c?

1055


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1092


Which driver is a pure java driver

1541


What is the scope of local variable in c?

1058


What is the use of gets and puts?

986