Home / MCQ Bank / Computer
Computer File Input Output

What will be the output of the following C code? #include <stdio.h> int main() { char *n; scanf("%s", n); return 0; }

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

Related Computer Questions

Which among the following is a .NET namespace? Which of the following selector is used to select elements that are read-only. When applied to form elements, this would select fields with the readonly attribute set? Which keyword is used to specify that a function cannot be overridden in a derived class in C++? Which of the following is true about the BFS algorithm in terms of shortest path? What will be the output of the following Java code snippet? double a = 0.02; double b = 0.03; double c = b - a; System.out.println(c); BigDecimal _a = new BigDecimal("0.02"); BigDecimal _b = new BigDecimal("0.03"); BigDecimal _c = b.subtract(_a); System.out.println(_c);