Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>
int main() {
int a = 10;
float b = 5.5;
float result1;
int result2;
// Implicit conversion (int -> float)
result1 = a + b;
printf("Implicit Result = %.2f\n", result1);
// Explicit casting (float -> int)
result2 = (int)b;
printf("Explicit Cast Result = %d\n", result2);
// ASCII difference example
char c1 = 'A';
char c2 = 'C';
printf("ASCII Difference = %d\n", c2 - c1);
return 0;
}Coding works best on desktop or with an external keyboard.