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...

how to find the size of the data type like int,float
without using the sizeof operator?

Answer Posted / rajesh gooda

ptr manipulation will return 1.

printf("size of int is %d",(int)((int*)0 + 1))

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why clrscr is used after variable declaration?

1703


Why is extern used in c?

1099


Do pointers need to be initialized?

1095


What are shell structures used for?

1059


What are the characteristics of arrays in c?

1056


What is calloc() function?

1117


write a programming in c to find the sum of all elements in an array through function.

2183


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

1189


What is #include stdio h?

1130


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

1286


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

1052


What is the scope of an external variable in c?

1052


What is the difference between text files and binary files?

1357


Explain what does it mean when a pointer is used in an if statement?

1076


Can we declare function inside main?

1009