Skip to content

Instantly share code, notes, and snippets.


phaya/plusplus.c Secret

Last active Oct 23, 2018
What would you like to do?
¿Cuál es el resultado correcto en esta asignación? ¿5 ó 6?
#include <stdio.h>
int main() {
int i = 5;
i = i++;
printf("%d\n", i);
return 0;
Copy link

albert101 commented Nov 9, 2013


Copy link

javierdarna commented Nov 10, 2013

Es como escribir i=i=i+1, luego es 6

Copy link

alozanousa commented Oct 23, 2018


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment