Home / MCQ Bank / Computer
Computer File Input Output

What will be the output of the following C code if following commands are used to run (considering myfile exists)? gcc -otest test.c ./test < myfile #include <stdio.h> int main() { char c = 'd'; putchar(c); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • d on the screen

Related Computer Questions

What will be the output of the following C code? #include <stdio.h> int main() { int x = 0; if (x == 1) if (x >= 0) printf("true\n"); else printf("false\n"); } If you see a diskette with a piece of foil covering its notch, it is said to be Shell sort is applied on the elements 27 59 49 37 15 90 81 39 and the chosen decreasing sequence of increments is (5,3,1). The result after the first iteration will be The expression 'HI' LIKE NULL results in ______ What will be the output of the following program code? #include <stdio.h> void main() { int i=3, *j, **k; j = &i; k = &j; printf("%d%d%d", *j, **k, *(*k)); }