Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- void _strcpy(char *p1, const char *p2);
- char sz [99] = "SONY Pictures = ",
- sz2[99] = {'S', 'O', 'N'};
- int nArr[66] = {71, 1, 2};
- ///////////////////////////////////////////////
- int main() //
- {
- _strcpy(sz, "sz2");
- printf(" sz = %s\n", sz);
- }
- void _strcpy(char *p1, const char *p2)
- {
- }
- /*
- #include <stdio.h>
- int x_foo(char *p);
- char sz [99] = "SONY Picture",
- sz2[99] = {'S', 'O', 'N'};
- int nArr[66] = {71, 1, 2};
- ///////////////////////////////////////////////
- int main() //
- {
- printf("Len of sz = %d\n", x_foo(sz2) );
- }
- ///////////////////////////////////////////////
- int x_foo(char *p) //
- {
- int i = 0;
- while(p[i++] != 0);
- return i-1;
- }
- */
- /*
- #include <stdio.h>
- int x_foo(char *p);
- char sz [99] = "SONY Pictures",
- sz2[99] = {'S', 'O', 'N'};
- int nArr[66] = {71, 1, 2};
- ///////////////////////////////////////////////
- int main() //
- {
- printf("Len of sz = %d\n", x_foo(sz) );
- }
- ///////////////////////////////////////////////
- int x_foo(char *p) //
- {
- int i = 0;
- for( ; i < 10000; i++)
- {
- if( p[i] == 0) break;
- }
- return i;
- }
- */
- /*
- #include <stdio.h>
- char sz [99] = "SONY Pictures",
- sz2[99] = {'S', 'O', 'N'};
- int nArr[66] = {71, 1, 2};
- ///////////////////////////////////////////////
- int main() //
- {
- sz2[4] = 4;
- sz2[5] = 5;
- sz2[4] += sz2[5];
- printf("sz2[4] = %d \n", sz2[4]);
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement