Back
Close

Quiz 19

Anonymous
1,144 views

description:

Arrays can be implicity converted to pointers without casting -- 4.2. There is no implicit conversion from pointers to arrays.

#include <iostream>
using namespace std;
int main()
{
int a[54] = {};
int b[54] = {};
int* x = a;
int* const y = a;
b = x;
b = y;
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