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
How many types of functions are there in c?
What do you mean by invalid pointer arithmetic?
How to draw the flowchart for structure programs?
Why & is used in scanf in c?
Write a program to swap two numbers without using third variable in c?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is character set?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
How can a number be converted to a string?
How can I swap two values without using a temporary?
How do you sort filenames in a directory?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
What is a lvalue