Single Choice
Not Set
Q What is the output of this C code?
#include
struct point
{
int x;
int y;
};
struct notpoint
{
int x;
int y;
};
struct point foo();
int main()
{
struct point p = {1};
struct notpoint p1 = {2, 3};
p1 = foo();
printf("%d\n", p1.x);
}
struct point foo()
{
struct point temp = {1, 2};
return temp;
}
ID: #2659
Structure in C Language
807 views
Question Info
#2659Q 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