Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- ////////////////////////////////////////
- int main()
- {
- int i = 1;
- L_01: printf("i = %2d\n", i);
- i++;
- if(i < 11) goto L_01;
- }
- /*
- # include <stdio.h>
- ////////////////////////////////////////
- int main()
- {
- for(int i = 10; i > 0; i--)
- {
- printf("i = %2d\n", i);
- }
- }
- */
- /*
- # include <stdio.h>
- int *foo ();
- int *foo1();
- ////////////////////////////////////////
- int main()
- {
- int *p1 = foo();
- int *p2 = foo1();
- int n1 = *p1,
- n2 = *p2;
- if(n1 < n2) printf("%d\n", n2);
- else printf("%d\n", n1);
- }
- /////////////////////////////////////////
- int *foo()
- {
- static int m=15;
- return &m;
- }
- ////////////////////////////////////////
- int *foo1()
- {
- static int z=10;
- return &z;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement