write a program for size of a data type without using
sizeof() operator?
Answer Posted / arun kumar mishra kiit univers
#include<stdio.h>
#include<conio.h>
void main()
{
float f1,*Ptr1,*Ptr2;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",(char *)ptr2-(char *)ptr1);
getch();
}
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
What is the function of multilevel pointer in c?
What is malloc return c?
When c language was developed?
What is the use of sizeof () in c?
What does void main return?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What is meant by realloc()?
What is a good way to implement complex numbers in c?
Is python a c language?
Why can't I perform arithmetic on a void* pointer?
What is wrong with this program statement?
Tell me is null always defined as 0(zero)?
How can I get random integers in a certain range?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
Is there sort function in c?