find the output of the following c code
#include
int main()
{
int a=12,b=18,c=7,d=4,result;
result=a+a*-b/c%d+c*d;
printf("%d",result);
return 0;
}
Answers
Answered by
1
Answer:
error will be there
Explanation:
not typed void main
Answered by
1
Output of the given code:
Output:
38
Explanation:
- In the given code a five integer variable "a, b, c, d, and result" is defined in which variable "a, b, c, and d" initializes a value that is "12, 18, 7, 4".
- In the next line, the result variable is used, which calculates the given expression value.
- In the last section, the print method is used, that print result variable value.
Learn more:
- Find the value: https://brainly.in/question/10332876
Similar questions