posted 23 years ago
From CD in Simon Roberts book:
Q)Which of the following lines of code, considered individually, compile(s) without error? Choose all correct options.
A) int i=1; int j = &simi;
B)int i=1; int j = !i;
C) boolean b = true; boolean c = &simb;
D) boolean b = true; boolean c = !b;
Correct selection is: A, D
explain: The &sim operator performs bitwise inversion on integral types; it may not be applied to boolean data. The ! operator inverts boolean values; it may not be applied to integral types.
I do not understand what is a &sim operator. Helps?
Thank you.