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

What is the function of volatile in c language?

1078


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

1195


What is "Hungarian Notation"?

1046


Is c programming hard?

978


can we implement multi-threads in c.

1091


What are the different types of control structures in programming?

1091


How to Throw some light on the splay trees?

1016


Why main is used in c?

1023


What do you mean by c what are the main characteristics of c language?

986


Why are all header files not declared in every c program?

1050


What is hungarian notation? Is it worthwhile?

1179


How can I read data from data files with particular formats?

1006


Write a c program to demonstrate character and string constants?

2126


What are the functions to open and close file in c language?

1139


In C language what is a 'dangling pointer'?

1071