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

Differentiate between null and void pointers.

1126


What is the purpose of void in c?

1003


What are high level languages like C and FORTRAN also known as?

1121


Explain what are header files and explain what are its uses in c programming?

1119


what value is returned to operating system after program execution?

2073


Explain null pointer.

1051


What is an operator?

1027


how many key words availabel in c a) 28 b) 31 c) 32

1019


Which programming language is best for getting job 2020?

998


How #define works?

1059


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1305


Is c is a low level language?

1078


What is hashing in c language?

1210


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

1114


What does %c mean in c?

1035