Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void foo();
- ////////////////////////////////////////////
- int main()
- {
- foo();
- }
- /////////////////////////////////////////////
- void foo() //
- {
- int marray[10]={25,50,65,-31,75,2000000000,10, 14},
- i = 0;
- name: i = i + 1;
- printf(" array[%d]= %d\n",i ,marray[i]);
- if(i<7) goto name;
- }
- /*
- #include <stdio.h>
- int nArr[77] = {1, 22, 25, 35, 5, 55, 105, 10000, 100000};
- /////////////////////////////////
- int main() //
- {
- for(int i = 0; i < 10; i++)
- {
- printf("nArr[%d] = %d\n", i, nArr[i]);
- nArr[i] = i;
- }
- printf(" - - - - - - - - - - - \n");
- for(int i = 0; i < 10; i++)
- {
- printf("nArr[%d] = %d\n", i, nArr[i]);
- }
- }
- */
- /*
- #include <stdio.h>
- int nArr[77];
- /////////////////////////////////
- int main() //
- {
- for(int i = 0; i < 10; i++)
- {
- printf("nArr[%d] = %d\n", i, nArr[i]);
- nArr[i] = i;
- }
- printf(" - - - - - - - - - - - \n");
- for(int i = 0; i < 10; i++)
- {
- printf("nArr[%d] = %d\n", i, nArr[i]);
- }
- }
- */
- /*
- #include <stdio.h>
- /////////////////////////////////
- int main() //
- {
- int n = 0;
- printf("START n = %d\n", n);
- name: n -= 1;
- printf("n = %d\n", n);
- if(n > -7) goto name;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement