Are the results of these expressions the same?
&(*ptr) += 4 // Expression 1 ptr += 4 // Expression 2
I am mainly a Java developer who was tasked with recompiling an old project from VS2008 to VS2015. The first line above leads to a compilation error due to the fact that the left operand is not a mutable value of l. The question is, can I use the second expression instead of the first, since from what I understand they should be the same?
ptr is of type char*.
char*
It would be very grateful for your understanding and / or help on this issue.
& lvalue, , (&a)++ , &a. , . (, , , l). , &(*ptr) = ptr, , &(*ptr) - , . 4 .
&
(&a)++
&a
&(*ptr) = ptr
&(*ptr)
, .
EDIT: , VS2008. & ( , ). , . , , . , ptr. (, + =, , ).
Source: https://habr.com/ru/post/1687854/More articles:Can dplyr :: case_when return a NA and non-NA connection? - rConfusion in the C ++ constructor - c ++Different value of property for contracts - c #Downloading multiple gifs multiple times - javascriptDocker: log capture error: invalid character '\ x00' looking for start of value - dockerМожно ли использовать карту/фильтр/уменьшить внутри обещания, возвращая результат с помощью Promise.resolve? - javascriptjava: Why both threads are not running in parallel - javaSQL Query - Grouping consecutive elements based on a condition - sqlHow to convert IndexedTable to DataFrame in Julia? - type-conversioniOS 11, Xcode 9 error: terminating NSURLConnection with error code -1009 - iosAll Articles