Top

Discussion

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";
}

  • A.%f
  • B.%d
  • C.%c
  • D.%s

Answer: A

?an be used to print the indexed position. ?an still be used to display its ASCII value. %s is recommended.
?annot be used.

No comment is present. Be the first to comment.
Loading…

Post your comment