Which of the following is not a file related function?
Correct Answer: puts()
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
Which function will you use to write a formatted output to the file?
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; }
Which statement will you add in following program to work it correctly? #includeint main() { printf('%f\n',log(360.0)); return 0; }
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; }