Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- //////////////////////////////////////////////
- int main()
- {
- char v[99] = " SONY Pictures Sunday";
- char v1[19];
- char v2[19];
- char v3[23];
- for (int i = 1; i < 5; i++)
- {
- v1[i-1] = v[i];
- }
- v1[4] = 0;
- printf( "%s\n", v1);
- for (int i = 6; i < 14; i++)
- {
- v2[i-6] = v[i];
- }
- v2[8] = 0;
- printf( "%s\n", v2);
- for (int i = 15; i < 22; i++)
- {
- v3[i-15] = v[i];
- }
- v3[6] = 0;
- printf( "%s\n", v3);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement