<span>Computed field is a field whose values you derive from existing fields.
</span><span> It is a very powerful field module because it enables to add a custom "computed fields" to your content types.</span><span>
To name a computed field, follow the computation with the word AS and then the name you wish to assign to the field.
The command is:</span><AS<span> display_name> </span>
Answer:
1) The value of x will be 6.
2) The value of y will be 7.
Explanation:
1) The value of x will be 6.
The enum values are labeled by default from 1. This means that Sun = 1, Mon = 2, Tue = 3 and so on.
So, x = Mon = 2 and y = Sat = 6
x increases up to y = 6 in the while loop.
and then y also increments by 1.
2)So the value of y = 7.
You will need actual printf("Sun") or printf("Mon") for printing the actual text for the enum.