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 / test

#include<stdio.h>
main()
{
int kh[2]={10,20};
int * ptr_kh=kh;
printf("%d",((char* )(ptr_kh+1)-(char*)ptr_kh));

}

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1283


What is the difference between text and binary modes?

1142


Why is C language being considered a middle level language?

1062


How does normalization of huge pointer works?

1110


Can we use any name in place of argv and argc as command line arguments?

1025


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

1307


How many types of operator or there in c?

1031


How can I do graphics in c?

990


Explain why can’t constant values be used to define an array’s initial size?

1320


Why dont c comments nest?

1008


How the c program is executed?

1089


How a string is stored in c?

1027


What is the difference between mpi and openmp?

1229


Why is c so popular?

1124


What are the different types of data structures in c?

1124