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

Function main

Chapter 2/01_variables.c:3–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <stdio.h>
2
3int main()
4{
5 int i = 10; // Declare and initialize 'i' with 10
6 int j = i;
7 int a = 2, b = 3, c = 4, d = 5;
8 // %d is called format specifier
9 // %d is for int, %f is for float and %c is for char
10 printf("The value of i is %d and value of j is %d\n", i, j );
11 printf("The value of a is %d and value of b is %d\n", a, b );
12 printf("The value of c is %d and value of d is %d\n", c, d );
13 return 0;
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected