posted 17 years ago
char x1=+x;
int x1=++x;
In the above statment i am assuming that the data type of that x is int and you are adding that int with char including plus symbole. It will genrate a compile time error that
possible lose of precission
found int
requred character
and your second statment that is int x1=++x. Here ++ is the unary prefix operator. Here the whatever the value in the x that value will be first increse with 1 and assigned to that of x1.