@@ -229,7 +229,9 @@ return 0;
229
229
}
230
230
```
231
231
### Result
232
- ![ result] ( result.png )
232
+ ```
233
+ Hello World!
234
+ ```
233
235
234
236
### Details
235
237
#### Including Files
@@ -352,7 +354,17 @@ int main()
352
354
```
353
355
354
356
### 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
+ ```
356
368
357
369
### Details
358
370
#### Data Types and Compiler
@@ -478,7 +490,14 @@ int main()
478
490
```
479
491
480
492
### 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
+ ```
482
501
483
502
### Details
484
503
#### True? False?
@@ -636,7 +655,36 @@ int main()
636
655
```
637
656
638
657
### 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
+ ```
640
688
641
689
### Details
642
690
#### for Loop
@@ -729,7 +777,15 @@ int main()
729
777
```
730
778
731
779
### 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
+ ```
733
789
734
790
### Details
735
791
#### Pointers
@@ -865,7 +921,14 @@ int main()
865
921
866
922
***
867
923
## 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
+ ```
869
932
870
933
### Details
871
934
#### Void Function
@@ -1074,7 +1137,6 @@ So, pointers are truly essential to be an excellent C programmer.
1074
1137
1075
1138
## STRUCTURE IN C
1076
1139
### Source Code
1077
-
1078
1140
```
1079
1141
#include <stdio.h>
1080
1142
@@ -1133,7 +1195,20 @@ int main()
1133
1195
```
1134
1196
1135
1197
### 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
+ ```
1137
1212
1138
1213
### Details
1139
1214
#### Structure Data Type
0 commit comments