MCPcopy Create free account
hub / github.com/CodeWithHarry/The-Ultimate-C-Programming-Course / main

Function main

Chapter 2/04_associativity.c:3–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <stdio.h>
2
3int main(){
4 int a = 3;
5 int b = 6;
6 int c = 9;
7
8 printf("The value is %d\n", a*b/c + 7);
9 printf("The value is %d", 3*b/2*c + 7*a);
10 // 3*b/2*c + 7*a
11 // 3*b/2*c + 21
12 // 18/2*c + 21
13 // 9*c + 21
14 // 81 + 21
15 // 102
16 return 0;
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected