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
How do you redirect a standard stream?
What is a protocol in c?
Explain what are binary trees?
What is bubble sort in c?
write a program to create a sparse matrix using dynamic memory allocation.
What is a substring in c?
How do you use a pointer to a function?
What is the return type of sizeof?
What is a floating point in c?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Not all reserved words are written in lowercase. TRUE or FALSE?
how should functions be apportioned among source files?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What is #include cctype?