write a program for size of a data type without using
sizeof() operator?
Answer Posted / prasad
I think this code is execute in turbo c/c++ perfectly.
#inclde<stdio.h>
#include<conio.h>
void main()
{
int a,b;
float x,y;
clrscr();
a=(int)&x;
b=(int)&y;
printf("%d",b-a);
getch();
}
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
difference between native and cross compilers
Explain what math functions are available for integers? For floating point?
What are the 4 types of unions?
c language interview questions & answer
Explain how can I remove the trailing spaces from a string?
What are unions in c?
write an algorithm to display a square matrix.
What is use of bit field?
What are the application of c?
If null and 0 are equivalent as null pointer constants, which should I use?
What are different storage class specifiers in c?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Which driver is a pure java driver
What is the scope of local variable in c?
What is the use of gets and puts?