how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / sunil
When the parameter is a datatype.
For Eg: sizeof(int), sizeof(double)
#define GetSize(x) (char*)((x*)10 + 1) - (char*)10
When the parameter is a variable.
For Eg: int a;
float b;
sizeof(a), sizeof(b)
#define GetSize(x) (char*)(&x + 1) - (char*)&x
Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Why is c so powerful?
What is the purpose of main() function?
What is meant by inheritance?
Whats s or c mean?
What are Macros? What are its advantages and disadvantages?
Differentiate between functions getch() and getche().
What will the preprocessor do for a program?
In C language, a variable name cannot contain?
In C, What is the #line used for?
How can I read in an object file and jump to locations in it?
What do you mean by c what are the main characteristics of c language?
What is pointer to pointer in c?
Are negative numbers true in c?
How many levels of indirection in pointers can you have in a single declaration?