Code output

Can anyone tell me what this code outputs?

int main()
{
int test=10;

do
{
cout<<-test<<endl;

}
while (test->4)

return(0);

}

prog.cpp: In function ‘int main()’:
prog.cpp:14: error: base operand of ‘->’ is not a pointer
prog.cpp:14: error: expected unqualified-id before numeric constant
prog.cpp:14: error: expected `)' before numeric constant
prog.cpp:14: error: expected `;' before numeric constant
prog.cpp:14: error: expected `;' before ‘)’ token
prog.cpp:16: warning: statement has no effect
Topic archived. No new replies allowed.