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


Please Help Members By Posting Answers For Below Questions

Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2122


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

668


Write a program to find the biggest number of three numbers in c?

588


What are qualifiers in c?

574


What is c value paradox explain?

576






Why is not a pointer null after calling free?

598


How many levels of pointers have?

593


application attempts to perform an operation?

1495


Can a variable be both const and volatile?

676


Why malloc is faster than calloc?

592


Can two or more operators such as and be combined in a single line of program code?

811


What are the types of pointers?

602


What are control structures? What are the different types?

598


How can I ensure that integer arithmetic doesnt overflow?

608


What kind of structure is a house?

557