• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is 'int i=1/3' is legal statement?

 
WiLL Tao
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for this stupid question.

i think this is legal statement,but the answer is negative(from one of mock questions.)
someone can affirm it?
Thanks .
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried to compile it?
 
WiLL Tao
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
compile and run no problem,Of course;
i said only for affirm.
Thanks Rob reply.
 
Nazmul Huda Sarkar
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes...its a correct statement... i is assigned with 0
Sometimes don't relies on mock qiestion. I found so many mistake there. Try to apply self-knowledge and write as many code as possible to develop your knowledgebase.
[ April 15, 2002: Message edited by: Md. Nazmul Huda Sarkar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic