Computer Science, asked by beantkaurluthra2764, 10 months ago

Int t; int s; s=2; t=(4*s++)/2; t?, s?

Answers

Answered by AskewTronics
0

t=4 and s=3:

Explanation:

  • The above code is in c language, which has one error, that is in "Int" which holds the capital 'I'. So the user needs to make this as small 'I', then the code will runs only.
  • If the value of s=2, then t="(4*2)/2", because s++ is a post-increment which increases the value of s after processed the t value.
  • The expression "t="(4*2)/2" assign the value 4 for t. Hence the value of at variable is 4.
  • Then the s value will be 3 because s++ will increase the value of s.

Learn More :

  • C-Language : https://brainly.in/question/610076

Similar questions