how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / abhishek pathak mnnit
#include <stdio.h>
#define sizeof(x) ((void *)(&x + 1) - (void *)(&x))
void main()
{
int a;
printf("int size=%d",sizeof(a));
}
| Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
What are the different types of pointers used in c language?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Why do some versions of toupper act strangely if given an upper-case letter?
Why is c so powerful?
Does c have enums?
Describe the order of precedence with regards to operators in C.
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Can true be a variable name in c?
Give basis knowledge of web designing ...
What is keyword in c?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What is a list in c?
Write a progarm to find the length of string using switch case?
What is a stream in c programming?
What is the difference between text and binary modes?