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
Can you write the function prototype, definition and mention the other requirements.
what are enumerations in C
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What is a volatile keyword in c?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
What is a null pointer in c?
When should a type cast be used?
What is 'bus error'?
What should malloc() do?
How many bytes is a struct in c?
What is the purpose of sprintf() function?
What is wrong with this code?
What are the main characteristics of c language describe the structure of ac program?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Why C language is a procedural language?