Back
Close

Quiz 20

Anonymous
1,295 views

#description: int* can be implicity converted to int const* -- 4.4. There is no implicit conversion from int const* to int*.

#include <iostream>
using namespace std;
int main()
{
int a = 2;
int* b = &a;
int const* c = b;
b = c;
return 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants