Guys why this code wont run?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Guys why this code wont run??

I don't know why it wont run,i thought it's the way to send an int to another int int x=10; int y=11; int x=int y; Why it wont run it says it's wrong

22nd Feb 2020, 7:59 PM
Erfan Mostafavi
Erfan Mostafavi - avatar
1 Answer
0
The variables x and y are already defined, and redefining them into a shared scop will cause a "redifination" error. int x =10; int y = 11; x =y;
23rd Feb 2020, 3:46 AM
Alireza Abbasi
Alireza Abbasi - avatar