Home » C Programming » Variables » Question
  1. Which of the following format identifier can never be used for the variable var?
    #include <stdio.h>
    int main()
    {
    char *variable = "Advanced Training in C by interviewmania.com";
    }
    1. %s
    2. %c
    3. %d
    4. %f
    5. None of these
Correct Option: D

%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 for the variable var.



Your comments will be displayed only after manual approval.