[SOLVED] How is it 0 here? I thought it must be 1 cause they look the same each other. Is the problem length of the strings? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[SOLVED] How is it 0 here? I thought it must be 1 cause they look the same each other. Is the problem length of the strings?

char a[]="tashkent"; char b[9]="tashkent"; cout<<(a==b);

11th Sep 2021, 10:37 PM
mesarthim
mesarthim - avatar
1 Answer
11th Sep 2021, 10:44 PM
Abhay
Abhay - avatar