What will be the output of the following C code?#include <stdio.h> struct p { int k; char c; float f; }; int p = 10; int main() { struct p x = {1, 97}; printf("%f %d\n", x.f, p); }a.Compile time errorb.0.000000 10c.Somegarbage value 10d.0 10
Question
What will be the output of the following C code?#include <stdio.h> struct p { int k; char c; float f; }; int p = 10; int main() { struct p x = {1, 97}; printf("%f %d\n", x.f, p); }a.Compile time errorb.0.000000 10c.Somegarbage value 10d.0 10
Solution
The output of the given code will be "0.000000 10".
Similar Questions
what will be the output of the c program?
What will be the output of the following code?
What will be the output of the following C++ code?
What will be the output of the following program?
What will be the output of the following C code?#include <stdio.h>int main() { int i; for (i = 0; i < 5; i++); printf("%d\n", i); return 0;}
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.