This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| program test_memory | |
| implicit none | |
| integer, dimension(:), allocatable :: array | |
| integer :: i | |
| allocate(array(5)) | |
| do i = 1, 5 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| import re | |
| import sys | |
| def insert(string, index, char): | |
| """ | |
| string - string in which to insert char | |
| index - position at which char is inserted into string | |
| char - character that is to be inserted |