You are saying that given a program like this:
Code:
int main(void)
{
/* #1 */
int &y=x;
return 0;
}
You are supposed to replace the comment #1 with code that will make the above program compile?
Note that you posted in C programming forum. Is this exam question really concerning C, or is it supposed to be C++? In C, it looks impossible: maybe some macro trick to redefine int might work, but you'll need to figure out how to circumvent the fact that bitwise operator& does not result in a modifiable lvalue, so you cannot assign x to the result.
In C++, that looks like the initialisation of a reference named y of type int& to refer to x, so the solution is trivial:
EDIT:
Or are you saying that given this line of code:
You are supposed to add characters to it such that it makes sense and could feasibly compile? If so, that seems terribly open-ended. For example:
The above compares the result of logical && between two variables integer and y, with the variable x, to see if they are equal, but does nothing with the result.