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

Answer Posted / amit ranjan

int main()
{
int a[2];
int one = a;
int two = a+1;
int test = two-one;
printf("%d\n", test);
return 0;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is huge pointer in c?

573


Can the sizeof operator be used to tell the size of an array passed to a function?

608


Why c is known as a mother language?

631


How many types of arrays are there in c?

587


what do the 'c' and 'v' in argc and argv stand for?

636






How can you find the exact size of a data type in c?

591


Is c language still used?

530


How can I call fortran?

632


code for quick sort?

1608


Differentiate between calloc and malloc.

747


Where are c variables stored in memory?

590


How can you check to see whether a symbol is defined?

583


how can I convert a string to a number?

590


Do you have any idea how to compare array with pointer in c?

592


What is merge sort in c?

634