Discussion :: C-MCQs
-
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";
}
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