Can someone explain me how pointers work? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 5

Can someone explain me how pointers work?

Pointers

18th Dec 2016, 8:41 PM
Valen.H. ~
Valen.H. ~ - avatar
4 ответов
+ 3
pointers r just data types same as int,float,string .. as int stores integers. pointers stores memory address of another variables. so take memory as lockers for example. each locker represents a byte. and there is certain name of lockers and that is memory address.. without concept of pointers u cannot have string as data type. think over it
18th Dec 2016, 9:16 PM
manish rawat
manish rawat - avatar
+ 2
valentine i am challenging u lets have a series of 7 matches in js and c++ both
19th Dec 2016, 12:50 PM
manish rawat
manish rawat - avatar
+ 1
Every object in C++ has access to its own address through an important pointer called this pointer. The this pointer is an implicit parameter to all member functions. Therefore, inside a member function, this may be used to refer to the invoking object.
18th Dec 2016, 9:15 PM
Mohammad Abu Sayed
Mohammad Abu Sayed - avatar
+ 1
pointers assign memory to variables.... not sure but I heard that it can increase the compiling speed as memory is allocated to the definite variables....
19th Dec 2016, 6:56 AM
DEF4LT_
DEF4LT_ - avatar