Home / MCQ Bank / Computer
Computer Structure And Union

What will be the output of the following C code? #include <stdio.h> struct p { int k; char c; }; int p = 10; int main() { struct p x; x.k = 10; printf("%d %d\n", x.k, p); }

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

Related Computer Questions

What is the use of the function "showbase"? What is the output of this expression, 3*1**3? How many constraints are to be met to successfully implement quadratic probing? NiFi is a dataflow system based on the concepts of ______ programming. What is the primary concern addressed by CCPA (California Consumer Privacy Act) in data privacy?