initial commit
This commit is contained in:
16
C++/lesson5/task2.cpp
Normal file
16
C++/lesson5/task2.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
void boo(int *ptr) {
|
||||
*ptr = 7;
|
||||
}
|
||||
|
||||
int main(){
|
||||
|
||||
int value = 4;
|
||||
|
||||
std::cout << "value = " << value << '\n';
|
||||
boo(&value);
|
||||
std::cout << "value = " << value << '\n';
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user