Can U write a C-program to print the size of a data type
without using the sizeof() operator? Explain how it works
inside ?
Answer Posted / saikat
#include <stdio.h>
int main()
{
float a[2];
int size = (char*)&a[1] - (char*)&a[0];
printf("%d
",size);
return 0;
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is there any demerits of using pointer?
Why do we need functions in c?
What is the purpose of the preprocessor directive error?
What is the difference between local variable and global variable in c?
How many parameters should a function have?
What are the advantages of using Unions?
Is this program statement valid? INT = 10.50;
Why header files are used?
What is a keyword?
Are pointers integers in c?
Write a Program to accept different goods with the number, price and date of purchase and display them
Explain what is meant by 'bit masking'?
why wipro wase
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?
Explain zero based addressing.