ExamVeda
Login
Home
71
What type of value does sizeof return?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
72
Which among the following is never possible in C when members are different in a structure and union?
//Let P be a structure
//Let Q be a union
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
73
What will be the size of the following C structure?
#include <stdio.h>
struct temp
{
    int a[10];
    char p;
};
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
74
What is the sizeof(void) in a 32-bit C?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
75
Which of the following cannot be used inside sizeof?
Discuss
Answer & Solution
Answer: Option B
Solution:
sizeof is a compile-time operator in C that determines the size, in bytes, of a variable or data type.

Option A: pointers – Valid. sizeof can be used with pointers to determine the size of the pointer type.

Option B: functions – Invalid. You cannot use sizeof on functions because functions do not have a defined size at compile time. sizeof requires a complete type, and functions are not complete objects in C.

Option C: macro definition – Valid. If the macro expands to a valid expression or type, sizeof can be used on it.

Option D: none of the mentioned – Incorrect because functions cannot be used with sizeof.

Therefore, the correct answer is Option B: functions.
76
Which data type is suitable for storing a number like?
10.0000000001
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
77
In a 32-bit compiler, which 2 types have the same size?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
78
What will be the output of the following C code?
#include <stdio.h>
printf("%d", sizeof(strlen("HELLOWORLD")));
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
79
What will be the output of the following C code?
#include <stdio.h>
printf("%.0f", 2.89);
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
80
What is the sizeof(char) in a 32-bit C compiler?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board