Top

Discussion

What is the output of this program?

#include 
struct test {
    int x;
    char y;
} test;

int main()
{
    test.x = 10;
    test.y = 'A';
    printf("%d %c", test.x,test.y);
    return 0;
}

 

  • A.0.416666666666667
  • B.garbage value garbage value
  • C.Compilation Error
  • D.None of these

Answer: A

No answer description available for this question

No comment is present. Be the first to comment.
Loading…

Post your comment