write a program for size of a data type without using
sizeof() operator?
Answer Posted / arun kumar mishra kiit univers
#include<stdio.h>
#include<conio.h>
void main()
{
float f1,*Ptr1,*Ptr2;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",(char *)ptr2-(char *)ptr1);
getch();
}
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
Write a program of advanced Fibonacci series.
When should the const modifier be used?
Difference between goto, long jmp() and setjmp()?
What does struct node * mean?
Is array name a pointer?
What is the difference between #include and #include 'file' ?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What is the easiest sorting method to use?
What is pointer to pointer in c with example?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
In a header file whether functions are declared or defined?
What is difference between && and & in c?
What is p in text message?
Is it better to use a macro or a function?
Why is a semicolon (;) put at the end of every program statement?