Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int a;
- int b;
- int arr[600];
- char sz1[111] = "SONY";
- char sz2[111] = "Picturesjd;shjd;lsgj'sjs'dkjh;rkjhg;jresj";
- ////////////////////////////////////////////////////
- int main() //
- {
- // strcat(sz1, sz2);
- printf(sz1);
- sz2[20] = 0;
- int n = strlen(sz2);
- printf("\n n = %4d \n", n);
- }
- /*
- #include <stdio.h>
- int arr[100] = {1, 7, 12, 44, 32, 78, 102, 256, 512, 1024, 228, 777};
- int a = 6,
- b = 3,
- c = 55,
- d = 2,
- e = 9,
- f = 4; // 24 bytes
- //int y[6] = {5, 20497, 12, 44, 32, 78}; // 24 bytes
- ////////////////////////////////////////////////////
- int main() //
- {
- int y[600];
- //for(int i = 0; i < 600; i = i + 1)
- int i = 0;
- do
- {
- printf("y[%2d] = %4d \n", i, y[i]);
- i++;
- }
- while (i < 600);
- }
- */
- /*
- #include <stdio.h>
- char sz[100] = "I'm counting to 8";
- ////////////////////////////////////////////////////
- int main() //
- {
- for(int i = 17; i > 0; i -= 2)
- {
- sz[i] = 0;
- printf("%s \n", sz);
- }
- }
- */
- /*
- #include <stdio.h>
- // I'm counting to 8
- ////////////////////////////////////////////////////
- int main() //
- {
- for(int i = 0; i <= 100000000; i++)
- {
- if(i % 10000 == 0) printf("I'm counting to %d \n", i);
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement