Single Choice
Not Set
QWhat is the output of this C code?
#include
struct point
{
int x;
int y;
};
void foo(struct point*);
int main()
{
struct point p1 = {1, 2};
foo(&p1);
}
void foo(struct point *p)
{
printf("%d\n", *p.x++);
}
ID: #2662
Structure in C Language
663 views
Question Info
#2662Q ID
Not SetDifficulty
Structure in C LanguageTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Compile time error
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic