A
Q. What is the output of C program with structures?
Code:
int main()
{
structure hotel
{
int items;
char name[10];
}a;
strcpy(a.name, "TAJ");
a.items=10;
printf("%s", a.name);
return 0;
}
{
structure hotel
{
int items;
char name[10];
}a;
strcpy(a.name, "TAJ");
a.items=10;
printf("%s", a.name);
return 0;
}
- Correct Answer - Option(C)
- Views: 12
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.