Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

whts the out put

 
Venkat Ramsimha
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public class TesttesT
{
public static void main (String []args)
{
unsigned byte b = 0;
b--;
}
}

hi all,
why the above program is giving compile time errors?anybody please suggest whts the output with the explanation?

thanks,
venkat
 
Bhalotia Kunal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
unsigned is a C++ keyword..

It is not in java..
Remember ---

c++ is not JAVA..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic