Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. Which of the following is not a valid C variable name?
  2. A.
    int number;
    B.
    float rate;
    C.
    int variable_count;
    D.
    int $main;

    View Answer

    Workspace

    Answer : Option D

    Explanation :

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


Be The First To Comment