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
What is the difference between far and near in c?
Write the control statements in C language
Why shouldn’t I start variable names with underscores?
How can I get back to the interactive keyboard if stdin is redirected?
How are 16- and 32-bit numbers stored?
Explain 'bus error'?
How can I read in an object file and jump to locations in it?
What are header files in c programming?
Write a program to generate random numbers in c?
How does sizeof know array size?
Can you mix old-style and new-style function syntax?
Difference between Shallow copy and Deep copy?
What is printf () in c?
Is a house a shell structure?
What is a constant and types of constants in c?