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 / akash patil

#include<stdio.h>
#include<conio.h>
void main()
{
int a[2];
printf("size is %d",(int)&a[1]-(int)&a[0]);
getch();
}

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a function and a method in c?

1086


How to throw some light on the b tree?

1090


What does main () mean in c?

1100


How do you list files in a directory?

1146


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1221


Explain how do you determine the length of a string value that was stored in a variable?

1155


how can I convert a string to a number?

1084


Is there sort function in c?

1020


What standard functions are available to manipulate strings?

1156


What are the application of void data type in c?

1191


What are the disadvantages of external storage class?

1062


Can we use any name in place of argv and argc as command line arguments?

1076


How can I read and write comma-delimited text?

1077


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1971


What is spaghetti programming?

1139