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
What is difference between function overloading and operator overloading?
Difference between MAC vs. IP Addressing
What are header files and what are its uses in C programming?
How do you print an address?
using for loop sum 2 number of any 4 digit number in c language
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
Define Spanning-Tree Protocol (STP)
Is c++ based on c?
Is c is a middle level language?
Does c have class?
What is malloc calloc and realloc in c?
What is the use of static variable in c?
Can math operations be performed on a void pointer?
What is an operator?
What are the rules for identifiers in c?