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
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
what does static variable mean?
how many key words availabel in c a) 28 b) 31 c) 32
Explain what is the advantage of a random access file?
How can variables be characterized?
What is extern storage class in c?
What is n in c?
What is the explanation for cyclic nature of data types in c?
Define the scope of static variables.
Explain what are header files and explain what are its uses in c programming?
What are the standard predefined macros?
What are shell structures used for?
What is structure packing in c?
In which header file is the null macro defined?
Is linux written in c?