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 are multibyte characters?

1061


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1085


what is bit rate & baud rate? plz give wave forms

1914


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1147


Explain what is the concatenation operator?

1108


How we can insert comments in a c program?

1070


Tell us two differences between new () and malloc ()?

1116


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

1067


What is the deal on sprintf_s return value?

1067


What does *p++ do? What does it point to?

1004


What is int main () in c?

1028


Why do we need arrays in c?

1084


write a program to print data of 5 five students with structures?

2005


What is function and its example?

1110


What does c mean?

974