Size of short integer and long integer would vary from one platform to another.
A:
True
B:
False
C:
D:
Answer:A
True, Depending on the operating system/compiler/system architecture you are working on, the range of data types can vary.
Discuss About this Question.
Range of double is -1.7e-38 to 1.7e+38 (in 16 bit platform - Turbo C under DOS)
A:
True
B:
False
C:
D:
Answer:B
False, The range of double is -1.7e+308 to 1.7e+308.
Discuss About this Question.
Size of short integer and long integer can be verified using the sizeof() operator.
A:
True
B:
False
C:
D:
Answer:A
True, we can find the size of short integer and long integer using the sizeof() operator. Example:
#include<stdio.h>int main()
{
shortint i = 10;
longint j = 10;
printf("short int is %d bytes.,\nlong int is %d bytes.",
sizeof(i),sizeof(j));
return0;
}
Output:
short int is 2 bytes.
long int is 4 bytes.
Discuss About this Question.
If the definition of the external variable occurs in the source file before its use in a particular function, then there is no need for an extern declaration in the function.
A:
True
B:
False
C:
D:
Answer:A
True, When a function is declared inside the source file, that function(local function) get a priority than the extern function. So there is no need to declare a function as extern inside the same source file.
Discuss About this Question.
Ad Slot (Above Pagination)
Install ExamAdept
Fast access — add this app to your device.
To install on iPhone/iPad: tap Share → Add to Home Screen.
Discuss About this Question.