Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. Which of the following format identifier can never be used for the variable var?

    int main()
    {
    char *var = "Advanced Training in C by AllIndiaExams.com";
    }
  2. A.
    %f
    B.
    %d
    C.
    %c
    D.
    %s

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    %c can be used to print the indexed position. %d can still be used to display its ASCII value. %s is recommended.
    %f cannot be used.


Be The First To Comment