Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char c = 'H';
- char sz[99] = "SONY";
- int nArr[99] = {100, 101};
- void foo();
- void _foo();
- ////////////////////////////////////////////////////
- int main() //
- {
- printf("c = %d\n", c );
- printf("c = %c\n", c );
- printf("sz = %s\n", sz );
- printf("sz = %s\n", &sz[0]);
- printf("sz = %c\n", sz[0]);
- printf("sz = %s\n", &sz[1]);
- _foo();
- }
- /////////////////////////////////////////////////////
- void foo() //
- {
- printf(" - - - - - - - - - - -\n");
- for(int i = 0; i < 5; i++)
- {
- printf("%d\n", sz[i]);
- }
- }
- /////////////////////////////////////////////////////
- void _foo() //
- {
- printf(" - - - - - - - - - - -\n");
- int i = 0;
- L_01: printf("%d\n", sz[i]);
- i ++;
- if( i < 5) goto L_01;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement