C MCQ set number 00710

1. What is the output of this C code? #include <stdio.h> struct point { int x; int y; }; void foo(struct point*); int main() { struct point p1[] = {1, 2, 3, 4}; foo(p1); } void foo(struct point p[]) { printf(”%dn”, p[1].x); } a) Compile time error b) 3 c) 2 d) 1 AnswerAnswer: b…

This content is for paid premium members only.
You can view complete answer after activation your membership.
Buy membership
Already a member? Log in here
ed010d383e1f191bdb025d5985cc03fc?s=120&d=mm&r=g

DistPub Team

Distance Publisher (DistPub.com) provide project writing help from year 2007 and provide writing and editing help to hundreds student every year.