some more
This commit is contained in:
BIN
arrays/a.out
BIN
arrays/a.out
Binary file not shown.
6
arrays/py/sizeof_loop.py
Normal file
6
arrays/py/sizeof_loop.py
Normal file
@@ -0,0 +1,6 @@
|
||||
# dynamarray (c++topy)
|
||||
|
||||
numbers = [1,1,2,2,34,45,5,6,7,2,3,34]
|
||||
|
||||
for i in range(0, len(numbers)):
|
||||
print(numbers[i])
|
||||
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
|
||||
We use the sizeof Opperator here to determine the size of the Array "numbers" {in this case 10} ;
|
||||
After that we print "i" Element in "numbers"
|
||||
|
||||
*/
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
Reference in New Issue
Block a user