write a program for size of a data type without using
sizeof() operator?
Answer Posted / akash patil
#include<stdio.h>
#include<conio.h>
void main()
{
int a[2];
printf("size is %d",(int)&a[1]-(int)&a[0]);
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the difference between a function and a method in c?
How to throw some light on the b tree?
What does main () mean in c?
How do you list files in a directory?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Explain how do you determine the length of a string value that was stored in a variable?
how can I convert a string to a number?
Is there sort function in c?
What standard functions are available to manipulate strings?
What are the application of void data type in c?
What are the disadvantages of external storage class?
Can we use any name in place of argv and argc as command line arguments?
How can I read and write comma-delimited text?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
What is spaghetti programming?