Home / C Programming / Declarations and Initializations :: Yes / No Questions

C Programming :: Declarations and Initializations

  1. Is there any difference in the following declarations?
    int myfun(int arr[]);
    int myfun(arr[20]);

  2. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Suppose a program is divided into three files f1, f2 and f3, and a variable is defined in the file f1 but used in files f2 and f3. In such a case would we need the extern declaration for the variables in the files f2 and f3?

  4. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Global variable are available to all functions. Does there exist a mechanism by way of which it available to some and not to others.

  6. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Is it true that a global variable may have several declarations, but only one definition?

  8. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Is it true that a function may have several declarations, but only one definition?

  10. A.

    Yes

    B.

    No

    View Answer

    Workspace

    Discuss Discuss in Forum