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 are loops c?
What are the features of the c language?
What are types of functions?
Why we write conio h in c?
what is a constant pointer in C
Explain the use of 'auto' keyword in c programming?
What is linear search?
What is table lookup in c?
Are comments included during the compilation stage and placed in the EXE file as well?
What are pointers? What are different types of pointers?
How do you construct an increment statement or decrement statement in C?
What is variable initialization and why is it important?
What are the advantages of external class?
How can I recover the file name given an open stream?
How can I automatically locate a programs configuration files in the same directory as the executable?