how to find the size of the data type like int,float
without using the sizeof operator?
Answer Posted / amit prakash
main()
{
int a;
int *aa,*bb;
int size;
aa = &a;
bb=aa;
bb++;
size=bb-aa;
printf("\nsize_of_int:%u",size) ; // actual size but
depends upon compiler
}
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are the two forms of #include directive?
What is the role of this pointer?
How can you tell whether a program was compiled using c versus c++?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What are the 5 types of inheritance in c ++?
All technical questions
Tell me about low level programming languages.
What is a ternary operator in c?
How is null defined in c?
How can I copy just a portion of a string?
What does int main () mean?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
Do you know what are bitwise shift operators in c programming?
What is wrong with this program statement? void = 10;
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.