Structures


  1. Which of the following structure declaration is correct ?









  1. 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.


  1. 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;
    };











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    None of these



  1. Which of the following technique is faster for travelling in binary trees?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Recursion


  1. Which of the following is not possible regarding structure variable?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: E

    None of these



  1. The number of distinct nodes the following struct declaration can point to is _____________.
    struct node
    {
    struct node *left;
    struct node *centre;
    struct node *right;
    };











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Option A, B and C is right answer.