answersLogoWhite

0

What else can I help you with?

Related Questions

How do you write c plus plus program to display size of the each data type?

The core if it would contain lines like these: printf ("sizeof (char)=%d\n" "sizeof (short)=%d\n" "sizeof (int)=%d\n" "sizeof (long)=%d\n" "sizeof (long long)=%d\n" "sizeof (size_t)=%d\n" "sizeof (void *)=%d\n" "sizeof (ptrdiff_t)=%d\n" "sizeof (va_list)=%d\n" "sizeof (intptr_t)=%d\n" , (int)sizeof (char) , (int)sizeof (short) , (int)sizeof (int) , (int)sizeof (long) , (int)sizeof (long long) , (int)sizeof (size_t) , (int)sizeof (void *) , (int)sizeof (ptrdiff_t) , (int)sizeof (va_list) , (int)sizeof (intptr_t) );


Write a c program to print the sizes and ranges of different data types in c?

#include<stdio.h> #include<conio.h> void main() { float f1,*Ptr1,*Ptr2; ptr1 = &fl; ptr2 = (&fl+1); printf("%u",(char *)ptr2-(char *)ptr1); getch(); }


How is the 'sizeof' keyword in a c program used to determine the amount of space of a variable?

It is 'sizeof'. Example: printf ("sizeof(int)=%d\n", sizeof (int));


What is a sizeof function in C programming?

Sizeof is an example.


What is the syntax for determining the size of an array in C using the keyword sizeof?

To determine the size of an array in C using the keyword sizeof, you would use the syntax: sizeof(array) / sizeof(array0).


Is the heart the size of a grapefruit or an apple?

The heart is actually a size between a grapefruit and an apple. The heart can swell when it is unhealthy and look bigger.


Is the heart a size of a grapefruit or apple?

The heart is actually a size between a grapefruit and an apple. The heart can swell when it is unhealthy and look bigger.


Explain the role of sizeof operator in java?

There is no sizeOf() operator in Java.


What will be the results of the operations sizeof 3 within single quotes and sizeof 3 within double quotes and sizeof 3 and why?

sizeof('3') returns 1 - its the size of a char sizeof("3") returns 2 - its the size of two chars - '3' and '\0' sizeof(3) returns 4 - its the size of an int (in a 32 bit system)


cor: An apple core is the very center of the apple?

heart


What is size of operator in c language?

it is used to know the memory size of variable of data type. Ex: float a; printf ("sizeof (a)= %d\n", sizeof (a)); or: printf ("sizeof (float)= %d\n", sizeof (float));


Why you call sizeof is a operator not a function in c language?

If sizeof were a function, the following code would work (you can try with any other function):printf ("Function sizeof is located at %p", sizeof);On the other hand, the following code wouldn't work, as functions don't accept a type as parameter:size_t intsize= sizeof (int);