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 the 4 types of programming language?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Why use int main instead of void main?
What is the size of enum in c?
Do you know the difference between exit() and _exit() function in c?
Are negative numbers true in c?
What is scanf () in c?
Explain what is the benefit of using an enum rather than a #define constant?
What is the use of getchar functions?
Explain the term printf() and scanf() used in c language?
Why shouldn’t I start variable names with underscores?
What are actual arguments?
Write a program of prime number using recursion.
How do you sort filenames in a directory?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit