write a program for size of a data type without using
sizeof() operator?
Answer Posted / g
This code will work in TC with 2 warnings but can get result
void main()
{
char *Ptr1,*Ptr2;
float fl;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",ptr2-ptr1);
}
This is a way to get the size of data type...waiting for
any other way...
| Is This Answer Correct ? | 44 Yes | 26 No |
Post New Answer View All Answers
What is a far pointer in c?
By using C language input a date into it and if it is right?
What is pragma c?
What is memory leak in c?
What does 3 mean in texting?
What is structure in c definition?
Can you define which header file to include at compile time?
What is I ++ in c programming?
What are the advantages of using new operator as compared to the function malloc ()?
What is the value of h?
what is recursion in C
What is ponter?
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 is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
How can I remove the leading spaces from a string?