-
-
Save phaya/008902243475ee03da37 to your computer and use it in GitHub Desktop.
¿Cuál es el resultado correcto en esta asignación? ¿5 ó 6?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
int i = 5; | |
i = i++; | |
printf("%d\n", i); | |
return 0; | |
} |
Es como escribir i=i=i+1, luego es 6
5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
6