Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Library Functions
Can you use the fprintf() to display the output on the screen?
Yes
Correct Answer:
Yes
Explanation:
Do like this
fprintf(stdout, "%s %d %f", str, i, a);
← Previous Question
Next Question→
More Questions from
Library Functions
What is stderr?
What is the purpose of fflush() function.
What will the function randomize() do in Turbo C under DOS?
Does there any function exist to convert the int or float to a string?
What will be the output of the program? #include
#include
int main() { char dest[] = {97, 97, 0}; char src[] = "aaa"; int i; if((i = memcmp(dest, src, 2))==0) printf("Got it"); else printf("Missed"); return 0; }
What will be the output of the program? #include
int main() { int i; i = scanf("%d %d", &i, &i); printf("%d\n", i); return 0; }
What will be the output of the program? #include
#include
int main() { float i = 2.5; printf("%f, %d", floor(i), ceil(i)); return 0; }
What will function gcvt() do?
What will be the output of the program? #include
int main() { int i; i = printf("How r u\n"); i = printf("%d\n", i); printf("%d\n", i); return 0; }
What will be the output of the program? #include
int main() { int i; char c; for(i=1; i<=5; i++) { scanf("%c", &c); /* given input is 'b' */ ungetc(c, stdout); printf("%c", c); ungetc(c, stdin); } return 0; }
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments