Question
A C function insert(Node* root, int data) for a BST.
#include typedef struct Node {   int data;   struct Node *left, *right; } Node; Node* newNode(int data) {   Node* temp = (Node*)malloc(sizeof(Node));   temp->data = data;   temp->left = temp->right = NULL;   return temp; } Node* insert(Node* root, int data) {   if (root == NULL) {     return newNode(data);   }   if (data < root->data) {     root->left = insert(root->left, data);   } else { // Handles data >= root->data     root->right = insert(root->right, data);   }   // Bug: Missing 'return root;' here } If this insert function is used to build a BST (e.g., root = insert(root, 50); root = insert(root, 30);), what is the most critical issue that will arise due to the missing return root; statement?Solution
• Why Correct Answer (C): The function will return an undefined value, potentially corrupting tree links or causing a crash. o This accurately describes the consequence of undefined behavior when a non-void function fails to return a value. The root pointer in the calling scope will receive an unpredictable value, leading to data corruption or a crash.
Which of the following increases the debt service coverage ratio (DSCR)?
RXIL (Receivables Exchange of India Ltd.) is a joint venture of which two institutions?
DuPont analysis is:
For an NBFC-MFI (Microfinance Institution), what is the minimum proportion of its assets that must be in the form of microfinance loans?
In India, what is the minimum Solvency ratio of insurance company to be maintained?
In the context of MSMEs, what does SMAS stand for?
In relation to internal control, which of the following statements is/are correct?
(i) It is a continuous critical review of financial and operat...
While determining the Material Cost, _______ is not deducted from the purchase price.
It is treated as interest and finance charges. It is ignored.
Commuted pension, exempt for other than government employees (who do not receive gratuity), is under section _______.
Within how many days should payment to an MSME supplier be made to allow it as an expense, for the computation of income under Income Tax Act?