hello geys,
i have some codes and i tried to find the output for each of them. most of the codes i answered
but there are some codes which are strange for me (the output)
first, i want from every one is to find the output without test it, please tell us if find the corrcet answer directly or not? if you find the correct output please explain to me because i tried many times to understand the code but i couldn't
first code is
int x;
for(x =1; x < 5; x++)
x = x + 2;
cout << x;
my answer was 3 but it's not correct.
* * * * *
int m[5] = {7,12,3,99,65};
cout << *(m + 2);
no answer for me:sad:
* * * * *
int y =8;
if(y != 8)
y++;
y++;
my answer was 10
* * * * *
char *word = "executing";
word = word + 4;
cout << word;
no answer, could you please tell me what is the name of the star? is it a pointer? because i want to search about it
please notice that i'm beginner and i'm learning
waiting for you