MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues
→
The syntax to print a % using printf statement can...
1.
The syntax to print a % using printf statement can be done by ________.
A.
%
B.
%%
C.
%
D.
%
E.
None of these
Answer» C. %
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What will be the output of the following C code if following commands are used to run(considering Newfile exists)?gcc -otest test.c ./test < Newfile #include <stdio.h> int main() { char ch = 'U'; putchar(ch); }
What will be the output of the following C code if following commands are used to run(considering Newfile exists)?gcc -otest test.c ./test > Newfile #include <stdio.h> int main(int argc, char **argv) { char ch = 'U'; putchar(ch); printf(" %d n", argc); }
What will be the output of the following C code?#include <stdio.h> int main() { short int n; scanf("%hd", &n); printf("%hd", n); return 0; }
What will be the output of the following C code?#include <stdio.h> int main() { char ch1[] = "HelloInterviewMania!"; char ch2[13]; scanf(ch1, "%s", ch2); printf("%s n", ch2); return 0; }
What will be the output of the following C code?#include <stdio.h> int main() { char *num; scanf("%s", num); return 0; }
What will be the output of the following C code?#include <stdio.h> int main() { int num; scanf("%d", num); printf("%d n", num); return 0; }
What will be the output of the following C code?#include <stdio.h> int main() { short int num; scanf("%h*d", &num); printf("%hd", h); return 0; }
What will be the output of the following C code?#include <stdio.h> int main() { short int n; scanf("%*hd", &n); printf("%hd", n); return 0; }
What will be the output of the following C code if 2 character is typed by the user?#include <stdio.h>#include <string.h> int main() { char line[25]; fgets(line, 25, stdin); printf("%d n", line[2]); return 0; }
What will be the output of the following C code?#include <stdio.h>#include <string.h> int main() { char line[25]; FILE *fp; fp = fopen("file.txt", "r"); while (fgets(line, 25, fp)) fputs(line, stdout); return 0; }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies