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 is the difference between far and near in c?

1065


Write the control statements in C language

1198


Why shouldn’t I start variable names with underscores?

1057


How can I get back to the interactive keyboard if stdin is redirected?

1186


How are 16- and 32-bit numbers stored?

1283


Explain 'bus error'?

1086


How can I read in an object file and jump to locations in it?

1026


What are header files in c programming?

1128


Write a program to generate random numbers in c?

1094


How does sizeof know array size?

1113


Can you mix old-style and new-style function syntax?

1098


Difference between Shallow copy and Deep copy?

2018


What is printf () in c?

1080


Is a house a shell structure?

1159


What is a constant and types of constants in c?

1114