write a program for size of a data type without using
sizeof() operator?
Answer Posted / desh deepak
void main()
{
char *Ptr1,*Ptr2;
float fl;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",ptr2-ptr1);
}
| Is This Answer Correct ? | 18 Yes | 18 No |
Post New Answer View All Answers
What does %p mean?
What is the difference between text files and binary files?
Explain what are reserved words?
What is function definition in c?
What is the full form of getch?
There seem to be a few missing operators ..
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
Explain the red-black trees?
Which is more efficient, a switch statement or an if else chain?
Is it possible to initialize a variable at the time it was declared?
What are header files in c programming?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What is the scope of static variable in c?
How can you draw circles in C?
Explain is it better to bitshift a value than to multiply by 2?