write a program for size of a data type without using
sizeof() operator?
Answer Posted / g
This code will work in TC with 2 warnings but can get result
void main()
{
char *Ptr1,*Ptr2;
float fl;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",ptr2-ptr1);
}
This is a way to get the size of data type...waiting for
any other way...
| Is This Answer Correct ? | 44 Yes | 26 No |
Post New Answer View All Answers
What are the uses of null pointers?
Is c easy to learn?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What is openmp in c?
provide an example of the Group by clause, when would you use this clause
write a program to find the given number is prime or not
What is the benefit of using an enum rather than a #define constant?
How the c program is executed?
What is the use of putchar function?
What are global variables and how do you declare them?
How to throw some light on the b tree?
How do I read the arrow keys? What about function keys?
How do I swap bytes?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
Explain threaded binary trees?