source: doc/theses/rob_schluntz/examples/intro/compound_lit.c @ 863c413

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumwith_gc
Last change on this file since 863c413 was 728df66, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

more documentation name changes

  • Property mode set to 100644
File size: 295 bytes
RevLine 
[9c14ae9]1int printf(const char *, ...);
2
3struct A { int x, y; };
4int f(struct A a, int z) {
5        printf("%d %d %d\n", a.x, a.y, z);
6}
7int g(int * x) {
8        if (x == 0) printf("NULL\n");
9        else printf("%d\n", *x);
10}
11
12int main() {
13        f((struct A){ 3, 4 }, (int){ 5 } = 10);
14        g((int[]){ 1, 2, 3 });
15        g(&(int){ 0 });
16}
Note: See TracBrowser for help on using the repository browser.