Код: Выделить всё
#include
using namespace std;
int main()
{
float x = 5.00, *p = &x;
*p = x++;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78743612/unexpected-result-with-postfix-increment-in-c-pointer-assignment[/url]
Код: Выделить всё
#include
using namespace std;
int main()
{
float x = 5.00, *p = &x;
*p = x++;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78743612/unexpected-result-with-postfix-increment-in-c-pointer-assignment[/url]