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

Function main

Chapter 2/02_arithmetic_operators.c:3–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <stdio.h>
2
3int main(){
4 int a = 5;
5 int b = 3;
6 int c = a + b;
7 printf("The value of a is %d and value of b is %d and sum is %d\n", a, b, c);
8 // Modulus operator is used to get the remainder
9 printf("The remainder when a is divided by b is: %d\n", a%b);
10
11 // This does not work for exponentiation in c
12 // int d = a^b;
13
14 return 0;
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected