Question
Size of short integer and long integer can be verified using the sizeof() operator.
True
Answer: Option A
#include<stdio.h>
int main()
{
short int i = 10;
long int j = 10;
printf("short int is %d bytes., nlog int is %d bytes.",
sizeof (i), sizeof(j));
return 0;
}
Output:
short int is 2 bytes.
long int is 4 bytes.
Was this answer helpful ?
True, we can find the size of short integer and long integer using the sizeof()
operator.
Example:
#include<stdio.h>
int main()
{
short int i = 10;
long int j = 10;
printf("short int is %d bytes., nlog int is %d bytes.",
sizeof (i), sizeof(j));
return 0;
}
Output:
short int is 2 bytes.
long int is 4 bytes.
Was this answer helpful ?
More Questions on This Topic :
Question 1.
A float is 4 bytes wide, whereas a double ....
Question 2.
1 : typedef long a; extern int a c;2....
Question 9.
Which of the declaration is correct?
....
Submit Solution