Which function will you use to write a formatted output to the file?
Correct Answer: fprintf()
Explanation:
Note: This Question is unanswered, help us to find answer for this one
C Programming Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More C Programming MCQ Questions
Given the array: int num[3][4]= { {3,6,9,12}, {15,25,30,35}, {66,77,88,99} }; what would be the output of *(*(num+1)+1)+1?
Output of the following code snippet? int funr(int x, int y) { if(x <= 0) { return y; } else { return (1+funr(x-1,y)); } } void main() { printf('%d',funr(2,3)); }
Given the following array: int a[8] = {1,2,3,4,5,6,7,0}; what would be the output of printf('%d',a[4]); ?
Following code snippet? void main() { int num1 = 30, num2 = 4; float result; result = (float)(num1/num2); printf('%.2f', result); return 0; }
Consider the following code. int i = 4, *j, *k; Which one of the following statements will not work?
Considering that integer is 4 bytes long, Output of the code? int main() { intfoobar=20, *foo, *bar; foo=&foobar; /* Assume address of foobar is 2100*/ bar=foo; *foo++=*bar++; foobar++; printf('foobar=%d, foo=%d, bar=%d\n', foobar, foo, bar); return 0; }
Considering the definition of a Union MyUnion, if int occupies 4 bytes, what is the memory size occupied by a variable of type MyUnion? union MyUnion { int foo; float bar; char foobar[16]; };
If the storage size of unsigned int is 2 bytes, then the range of values of an unsigned integer is:
Output of this C code (if run with no options or arguments)? #include int main(intargc, char *argv[]) { printf('%d\n', argc); return 0; }
Assuming integer is 4 bytes long and the address for 'i' is 2000, Output for the following code? int main() { int ***foo, **bar, *foobar, i=5; foobar = &i; bar = &foobar; foo = &bar; printf('%d, %d, %d\n', *foobar, **bar, ***foo); return 0; }