Compiler
Preprocessor
Linker
Assembler
What will be the output of the following code?
4, 4, 12
8, 2, 12
10, 4, 16
8, 4, 14
All of them let you define new values
All of them let you define new data types
All of them let you define new pointers
All of them let you define new structures
We can define functions within structures but not within a union
We can define functions within union but not within a structure
The way memory is allocated
There is no difference
string
structures
char
all of the mentioned
struct
enum
typedef
- (Minus)
<- (Left Arrow)
. (Dot)
Both <- and .
Another structure
Function
Array
None of the mentioned
b->var;
b.var;
b-var;
b>var;
struct {int a;}
struct a_struct {int a;}
struct a_struct int a;
struct a_struct {int a;};
struct stu;
struct Student stu;
stu;
int stu
Structures cannot contain arrays
Structures cannot contain other structures
Structures can have members of different data types
Structures are the same as arrays
A structure can store multiple data types, a union cannot
A union can store multiple data types, a structure cannot
In a structure, only one member can be accessed at a time
In a union, only one member can be accessed at a time
Variables of the same type
Variables of the different type
Functions and variables
Only functions
The size of the largest member
The sum of the sizes of all members
Twice the size of the largest member
Size of the smallest member
Nested structure
Recursive structure
Union structure
Inline structure
Representation of NULL pointer
Representation of void pointer
Error
None of above
near=2 far=4 huge=4
near=4 far=8 huge=8
near=2 far=4 huge=8
near=4 far=4 huge=8
A keyword used to create variables
A variable that stores address of an instruction
A variable that stores address of other variable
All of the above
memory.h
stdlib.h
string.h
dos.h