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
Where static variables are stored in memory in c?
How many loops are there in c?
What is the most efficient way to count the number of bits which are set in an integer?
How can I write functions that take a variable number of arguments?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is the difference between NULL and NUL?
What is indirection in c?
What is the collection of communication lines and routers called?
What does it mean when the linker says that _end is undefined?
What is a static function in c?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What are the types of data structures in c?
Is null always defined as 0(zero)?
Difference between MAC vs. IP Addressing
What are keywords c?