Can U write a C-program to print the size of a data type
without using the sizeof() operator? Explain how it works
inside ?
Answer Posted / saikat
#include <stdio.h>
int main()
{
float a[2];
int size = (char*)&a[1] - (char*)&a[0];
printf("%d
",size);
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program to print ASCII code for a given digit.
What is the benefit of using an enum rather than a #define constant?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What is p in text message?
How can I split up a string into whitespace-separated fields?
Explain the advantages of using macro in c language?
What are header files in c?
How can you read a directory in a C program?
What are the different data types in C?
What is include directive in c?
What are keywords c?
Explain bitwise shift operators?
Is c still relevant?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What are the two types of structure?