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
Explain how can I convert a number to a string?
code for find determinent of amatrix
What is the difference between %d and %i?
Is int a keyword in c?
What are types of structure?
What is difference between stdio h and conio h?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is the use of printf() and scanf() functions?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What is non linear data structure in c?
Array is an lvalue or not?
What does & mean in scanf?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
Explain the use of #pragma exit?
How is a null pointer different from a dangling pointer?