Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- __int8 n2 = 120;
- //////////////////////////////////////////////////////////////
- int main()
- {
- for(int i = 120; i < 140; i++)
- {
- printf("n2 = %4d\n", n2++);
- }
- }
- /*
- #include <stdio.h>
- //////////////////////////////////////////////////////////////
- int main()
- {
- if(0) printf("True \n");
- else printf("False\n");
- printf("True = %d\n", 4 > 0);
- printf("False = %d\n", -11 > 0);
- }
- */
- /*
- #include <stdio.h>
- int _strlen(char *p);
- //////////////////////////////////////////////////////////////
- int main()
- {
- char sz[ 99] = {'A', 'S', 83, 'A', 0};
- char sz2[99] = "Pictures";
- int nLen = _strlen(sz);
- printf("nLen of sz = %d\n", nLen);
- //_strlen(sz2);
- return 0;
- }
- //////////////////////////////////////////////////////////////// printf("p = %s\n", &p[1]);
- int _strlen(char *p)
- {
- int n = 0;
- for(int i = 0; i < 1000; i++)
- {
- if(p[i] == 0) break;
- n ++;
- }
- return n;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement