C++ Programming and Technical Programming Program

What will be the output of following program?

main()
{
int i=1;
for(;i<=32768;i++)
printf("%d",i);
}

Options
1) 32767
2) infinite loop
3) 32768
4) None of the above

Read Solution (Total 2)

C++ Other Question

What will be the O/P?

main()
{
struct xyz {
int i;
};
struct xyz *p;
struct xyz a;
p=&a;
p->i=10;
printf("%d",(*p).i);
}

Options
1) 0
2) 10
3) Garbage Value
4) Compile Time Error
Data members is also called?

Options
1) Attribute
2) Method
3) Class
4) Object