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 / lalit kumar

#include "stdafx.h"
#include "stdio.h"
#include "conio.h"
int main()
{
int a;
printf("%u\n",(int)(&a+1)-(int)(&a));
getch();
return 0;
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

main() { printf("hello"); fork(); }

1188


For what purpose null pointer used?

1066


Do string constants represent numerical values?

1387


What are variables c?

1045


Can a program have two main functions?

1115


Do you know what are bitwise shift operators in c programming?

1096


What is a function in c?

1571


Explain low-order bytes.

1028


Why main function is special give two reasons?

1537


Can you define which header file to include at compile time?

1020


What is typedef?

1407


What do you understand by friend-functions? How are they used?

1203


How do you view the path?

1123


What does struct node * mean?

1011


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1247