Structures
- Which of the following structure declaration is correct ?
-
View Hint View Answer Discuss in Forum
In B semicolon is missing after the declaration. In C semicolon is missing after each structure element.
Correct Option: A
In B semicolon is missing after the declaration. In C semicolon is missing after each structure element.
- Which of the following will stop the loop at the last node of a linked list in the following C code snippet?
struct node
{
struct node *next;
};
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
None of these
- Which of the following technique is faster for travelling in binary trees?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Recursion
- Which of the following is not possible regarding structure variable?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: E
None of these
- The number of distinct nodes the following struct declaration can point to is _____________.
struct node
{
struct node *left;
struct node *centre;
struct node *right;
};
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Option A, B and C is right answer.