Skip to content

Commit 9b35892

Browse files
Update README.md
1 parent 474b009 commit 9b35892

File tree

1 file changed

+83
-8
lines changed

1 file changed

+83
-8
lines changed

README.md

+83-8
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ return 0;
229229
}
230230
```
231231
### Result
232-
![result](result.png)
232+
```
233+
Hello World!
234+
```
233235

234236
### Details
235237
#### Including Files
@@ -352,7 +354,17 @@ int main()
352354
```
353355

354356
### Result
355-
![result](result.png)
357+
```
358+
int i: 1
359+
int j: 12
360+
const int k: 345
361+
unsigned int l: 6789
362+
char myletter[]: myletter
363+
float x: 1.230000
364+
double y: 45.678900
365+
(@index 0) int myarray[0] : 2
366+
(@index 0) float farray[0] : 0.00
367+
```
356368

357369
### Details
358370
#### Data Types and Compiler
@@ -478,7 +490,14 @@ int main()
478490
```
479491

480492
### Result
481-
![result](result.png)
493+
```
494+
i is true with a value of: 1
495+
i is true with a value of: 123
496+
i is true with a value of: -321
497+
i is false with a value of: 0
498+
Condition 4 met!
499+
i is 0
500+
```
482501

483502
### Details
484503
#### True? False?
@@ -636,7 +655,36 @@ int main()
636655
```
637656

638657
### Result
639-
![result](result.png)
658+
```
659+
i: 0 x[i]: 0
660+
i: 1 x[i]: 10
661+
i: 2 x[i]: 20
662+
i: 3 x[i]: 30
663+
i: 4 x[i]: 40
664+
i: 5 x[i]: 50
665+
i: 6 x[i]: 60
666+
i: 7 x[i]: 70
667+
i: 8 x[i]: 80
668+
i: 9 x[i]: 90
669+
y: 12
670+
y: 24
671+
y: 36
672+
y: 48
673+
y: 60
674+
y: 72
675+
y: 84
676+
y: 96
677+
y: 108
678+
y: 12
679+
y: 24
680+
y: 36
681+
y: 48
682+
y: 60
683+
y: 72
684+
y: 84
685+
y: 96
686+
y: 108
687+
```
640688

641689
### Details
642690
#### for Loop
@@ -729,7 +777,15 @@ int main()
729777
```
730778

731779
### Result
732-
![result](result.png)
780+
```
781+
Memory address of i: 0x7ffce7495e0c
782+
iPtr: 0x7ffce7495e0c
783+
But, iPtr has its own address: 0x7ffce7495e10
784+
Getting the value the pointer points to using * :
785+
i = 1, *iPtr = 1
786+
Changing the value directly using a pointer:
787+
After using "*iPtr = 2;", i is now 2
788+
```
733789

734790
### Details
735791
#### Pointers
@@ -865,7 +921,14 @@ int main()
865921

866922
***
867923
## Result
868-
![result.png](result.png)
924+
```
925+
This function 'printFunctionTest()' only prints, nothing else.
926+
i: 22 x: 234.23000 y: 420630.25000
927+
i: 123 x: 3419.75806 y: 420630.25000
928+
Before function call, myArray[0]: 0 myArray[1]: 0
929+
array mem address: -214060608
930+
After function call, myArray[0]: 5 myArray[1]: 12
931+
```
869932

870933
### Details
871934
#### Void Function
@@ -1074,7 +1137,6 @@ So, pointers are truly essential to be an excellent C programmer.
10741137

10751138
## STRUCTURE IN C
10761139
### Source Code
1077-
10781140
```
10791141
#include <stdio.h>
10801142
@@ -1133,7 +1195,20 @@ int main()
11331195
```
11341196

11351197
### Result
1136-
![result](result.png)
1198+
```
1199+
=====================
1200+
Student name: Nikki
1201+
age: 19
1202+
height: 64.750
1203+
grades: 98.0 98.0 98.0 98.0 98.0 98.0 98.0 98.0 98.0 98.0
1204+
=====================
1205+
=====================
1206+
Student name: Nikki
1207+
age: 19
1208+
height: 64.750
1209+
grades: 72.0 98.0 98.0 98.0 81.0 98.0 85.0 98.0 98.0 98.0
1210+
=====================
1211+
```
11371212

11381213
### Details
11391214
#### Structure Data Type

0 commit comments

Comments
 (0)