Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memoryが0埋めなのでreturnを忘れても0が返る #110

Open
kobakazu0429 opened this issue Jan 23, 2022 · 0 comments
Open

memoryが0埋めなのでreturnを忘れても0が返る #110

kobakazu0429 opened this issue Jan 23, 2022 · 0 comments

Comments

@kobakazu0429
Copy link
Owner

https://wasm-c-web.pages.dev/?data=N4IgZglgNgpgdgQwLYxALhABgIwDEDK+AzNgEqYCs2AmttgFIBsACgIICiAihQOIUAc1XADoAxiAA0IUQHsAJqgwBiCHFFQArgoAEAHgDOAFzkQZwgBYA+ADoAna3DsPVh7QjlyAFC7cTtPgCMASm1gJzhtfzhXUW0AXjdtAGptAIBucMiAeiztWxhDDVsI0Qz7OABfcPCfJARVTxCw8siAB1sXME9rEABSOWsHHr93L2w-ACYgoLKHKvKQCqA

https://paiza.io/projects/cr3_6_cEXTo_ahgfKLJUNA

#include <stdio.h>

int add(int a, int b) {
  int c = a + b;
  // return c;
}

int main() {
  printf("%d\n", add(1, 2));
}

expected(e.g.)

92546920

acctual

0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant