From 55fc7eb3bba83f4084b2f897c61d0280a5f9c097 Mon Sep 17 00:00:00 2001 From: angeld55 Date: Sat, 2 Oct 2021 17:44:35 +0300 Subject: new --- Sem. 10/pointers_basics.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 Sem. 10/pointers_basics.cpp (limited to 'Sem. 10/pointers_basics.cpp') diff --git a/Sem. 10/pointers_basics.cpp b/Sem. 10/pointers_basics.cpp deleted file mode 100644 index e3c537a..0000000 --- a/Sem. 10/pointers_basics.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include -using namespace std; - -const int SIZE = 5; -int main() -{ - int arr[SIZE] = {9,8,7,6,5}; //arr е променлива от тип const int* - int* ptr = arr; - - cout << arr << endl; // адресът на първата клетка в масива. - cout << ptr << endl; // същият адрес - - cout << *ptr <