Home / MCQ Bank / Computer
Computer File Input Output

What is the output of the following C code if there is no error in stream fp? #include <stdio.h> int main() { FILE *fp; fp = fopen("newfile", "w"); printf("%d\n", ferror(fp)); return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B

Related Computer Questions

What will be the output of the following C# code? static void Main(string[] args) { string s1 = "Hello I Love Csharp "; Console.WriteLine(Convert.ToChar( (s1.IndexOf('I') - s1.IndexOf('l')) * s1.IndexOf('p')); Console.ReadLine(); } Number of threads that exists for each of the processes that occurs in the program: What will happen after compiling this program code? abstract class MyClass{ //line 1 private int a, b; public void call(int a, int b){ this.a = a; this.b = b; System.out.print(a+b); } } public class Test{ public static void main(String args[]){ MyClass m = new MyClass(); //line 2 m.call(12,25); } } How many types of insertion are performed in a binary tree? The relationship of skew heaps to leftist heaps is analogous to that of?