how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / vishnu948923
void main()
{
char *ptr1,*ptr2;
float fl;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",ptr2-ptr1);
}
| Is This Answer Correct ? | 29 Yes | 15 No |
Post New Answer View All Answers
How can I delete a file?
What is the difference between a function and a method in c?
Why is c used in embedded systems?
how can I convert a string to a number?
What kind of structure is a house?
Why is event driven programming or procedural programming, better within specific scenario?
Here is a good puzzle: how do you write a program which produces its own source code as output?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What is abstract data structure in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
what are bit fields? What is the use of bit fields in a structure declaration?
When is a “switch” statement preferable over an “if” statement?
What are c header files?
Write a program of prime number using recursion.
in linking some of os executables are linking name some of them