What will be the output of the program ?#include<stdio.h>int main(){printf("Code", "Quiz\n");return 0;}AErrorBCodeCCode QuizDQuiz
Question
What will be the output of the program ?#include<stdio.h>int main(){printf("Code", "Quiz\n");return 0;}AErrorBCodeCCode QuizDQuiz
Solution
The output of the program will be "Code". This is because the printf function in C only processes the first argument if there are not any format specifiers in the string. So, the correct answer is B - "Code".
Similar Questions
what will be the output of the c program?
What will be the output of the following program?Note: This question helps in clearing the AMCAT exam
What will be the output of the C program? ans.1 88 82 21 1 Previous Marked for Review Next
What is the output of the following C Program?
What will be the output of the following program?Note: This question helps in clearing AMCAT exam.12345678910#include <stdio.h>int main() { int c = 0, e = 0; for (e = 0;e < 5; e++) { c++; if (e == 3) break; } printf("%d",c);}
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.