Which of the following statements about structures is TRUE?
Consider the following code:
struct Data {
int a;
char b;
};
struct Data d = {10, 'A'};
Which method of initialization is used here?
What is the primary difference between a struct and a union in C?
Which of the following correctly demonstrates accessing a member of a pointer to a structure?
In C, what does the 'typedef' keyword do when used with structures?
Advertisement
Given: struct Node { int data; struct Node *next; }; This represents which data structure concept?
In the context of structures, what does 'self-referential' mean?
What is the key difference between a structure and a union in C?
struct Node { int data; struct Node *next; }; This is an example of which design pattern?
Given a structure with array members, how would you efficiently pass it to a function to avoid copying overhead?
Which function is used to open a file in C?
What does the mode 'rb' mean in fopen()?
Which function is used to close a file in C?
Which mode opens a file for writing and truncates it if it exists?
When opening a file in 'w' mode, what happens if the file already exists?
Which of the following file modes in fopen() allows reading only?
In file handling, what does the 'b' flag in file modes like 'rb' or 'wb' indicate?
Which function is used to determine the current position in a file?
What is the correct syntax to open a file named 'data.txt' in read mode?
Which mode allows both reading and writing to a file, creating it if it doesn't exist?