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 does s c mean on snapchat?
I need previous papers of CSC.......plz help out by posting them.......
What is the purpose of sprintf?
Can you add pointers together? Why would you?
What are enums in c?
Is c compiled or interpreted?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
What is difference between array and structure in c?
Which built-in library function can be used to match a patter from the string?
What is scope of variable in c?
What header files do I need in order to define the standard library functions I use?
What is typeof in c?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What is meant by type casting?
How variables are declared in c?