-
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";
}
-
- %s
- %c
- %d
- %f
- 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.