write a program for size of a data type without using
sizeof() operator?
Answer Posted / g
This code will work in TC with 2 warnings but can get result
void main()
{
char *Ptr1,*Ptr2;
float fl;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",ptr2-ptr1);
}
This is a way to get the size of data type...waiting for
any other way...
| Is This Answer Correct ? | 44 Yes | 26 No |
Post New Answer View All Answers
How are variables declared in c?
How to draw the flowchart for structure programs?
What is sizeof c?
What is a newline escape sequence?
State the difference between x3 and x[3].
What is the difference between near, far and huge pointers?
What is the function of multilevel pointer in c?
What is the use of structure padding in c?
Explain the ternary tree?
why wipro wase
What is the difference between a function and a method in c?
What is .obj file in c?
Define circular linked list.
Distinguish between actual and formal arguments.
write a program for the normal snake games find in most of the mobiles.