how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / amit prakash
main()
{
int a;
int *aa,*bb;
int size;
aa = &a;
bb=aa;
bb++;
size=bb-aa;
printf("\nsize_of_int:%u",size) ; // actual size but
depends upon compiler
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is a built-in function in C?
What is the purpose of realloc()?
What does it mean when the linker says that _end is undefined?
How many header files are in c?
What is array of structure in c programming?
How will you delete a node in DLL?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
please give me some tips for the placement in the TCS.
Why is #define used?
Why isn't it being handled properly?
What is a stream?
What is a lvalue
What are high level languages like C and FORTRAN also known as?
What does calloc stand for?
Which header file should you include if you are to develop a function which can accept variable number of arguments?