Variables


  1. Which is valid C expression?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Space, comma and $ cannot be used in a variable name.


  1. Which of the following is true for variable names in C?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    According to the syntax for C variable name, it cannot start with a digit.



  1. Which of the following is not a valid C variable name?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Since only underscore and no other special character is allowed in a variable name, it results in an error.


  1. C99 standard guarantees uniqueness of _____ characters for external names.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    ISO C99 compiler may consider only first 31 characters for external names.



  1. Which of the following is not a valid variable name declaration?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: E

    int a = 12; is a valid variable name declaration.