write a program for size of a data type without using
sizeof() operator?
Answer Posted / desh deepak
void main()
{
char *Ptr1,*Ptr2;
float fl;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",ptr2-ptr1);
}
| Is This Answer Correct ? | 18 Yes | 18 No |
Post New Answer View All Answers
What is c token?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
How is a null pointer different from a dangling pointer?
What is I ++ in c programming?
What are structural members?
The statement, int(*x[]) () what does in indicate?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
Explain how can I prevent another program from modifying part of a file that I am modifying?
What is #include stdio h and #include conio h?
What is LINKED LIST? How can you access the last element in a linked list?
What is pointer to pointer in c?
What is the difference between ++a and a++?
How can you avoid including a header more than once?
Does c have circular shift operators?