Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement