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
What is a floating point in c?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What is the right type to use for boolean values in c? Is there a standard type?
What is a volatile keyword in c?
Explain About fork()?
What is meant by 'bit masking'?
pierrot's divisor program using c or c++ code
What are the 4 types of unions?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Is malloc memset faster than calloc?
string reverse using recursion
What is the acronym for ansi?
What are structures and unions? State differencves between them.
the question is that what you have been doing all these periods (one year gap)
What is the purpose of ftell?