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

Explain Basic concepts of C language?

1090


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1896


Is c pass by value or reference?

1002


What is a const pointer?

1049


What is anagram in c?

883


Why c language is called c?

961


What language is windows 1.0 written?

1000


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1207


What is bubble sort technique in c?

935


How to delete a node from linked list w/o using collectons?

2739


‎How to define structures? · ‎

1037


Explain spaghetti programming?

1197


how is the examination pattern?

1971


What language is lisp written in?

1183


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

3013