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

What are loops c?

1057


What are the features of the c language?

1090


What are types of functions?

1044


Why we write conio h in c?

1040


what is a constant pointer in C

1184


Explain the use of 'auto' keyword in c programming?

1121


What is linear search?

1141


What is table lookup in c?

1103


Are comments included during the compilation stage and placed in the EXE file as well?

1087


What are pointers? What are different types of pointers?

1150


How do you construct an increment statement or decrement statement in C?

1238


What is variable initialization and why is it important?

1268


What are the advantages of external class?

1071


How can I recover the file name given an open stream?

1027


How can I automatically locate a programs configuration files in the same directory as the executable?

1175