write a program for size of a data type without using
sizeof() operator?
Answer Posted / desh deepak
void main()
{
char *Ptr1,*Ptr2;
float fl;
ptr1 = &fl;
ptr2 = (&fl+1);
printf("%u",ptr2-ptr1);
}
| Is This Answer Correct ? | 18 Yes | 18 No |
Post New Answer View All Answers
what are bit fields in c?
What does char * * argv mean in c?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
what is bit rate & baud rate? plz give wave forms
What is string in c language?
How to set file pointer to beginning c?
What is a structure and why it is used?
Can a pointer be static?
Explain the difference between strcpy() and memcpy() function?
Write a code of a general series where the next element is the sum of last k terms.
What is the role of this pointer?
What does the c preprocessor do?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
What are linked lists in c?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.