What is the output of the below given code?
int y = 9;
y += y+3;
printf("%d",y);
+ = → is an assignment operator
y+ = y+3
y = y + (y + 3)
y = 9 + (9 + 3)
y = 21
Note:
Assignment operator associativity is right to left
What is the output of the below given code?
int y = 9;
y += y+3;
printf("%d",y);
+ = → is an assignment operator
y+ = y+3
y = y + (y + 3)
y = 9 + (9 + 3)
y = 21
Note:
Assignment operator associativity is right to left
No discussions yet. Be the first to start!
You must be logged in to participate in the discussion.
login Login to DiscussThe correct answer is Microphone.
Key Points
Additional Information
A series is given with one them missing selected the correct value from the given ones that will complete the series.
A15N, I31V, Q21D, Y37L,?
The pattern is:

And the number between the alphabets is the sum of position of alphabets in the general alphabetic series.

A + N = 1 + 14 = 15
I + V = 9 + 22 = 31
Q + D = 17 + 4 = 21
Y + L = 25 + 12 = 37
G + T = 7 + 20 = 27
Hence, the answer is 'G27T'.The correct answer is Application software.
Key Points
Additional Information
In the following question, select the missing number from the given series.
31, 63, 124, 251, ?The pattern is:
31
31 × 2 + 1 = 63;
63 × 2 - 2 = 124;
124 × 2 + 3 = 251;
251 × 2 - 4 = 498
Hence, the answer is '498'.
Every object attributes have _______.
Concept:
In general, each object contains three object associated attributes: