Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- char ann[99]="SONY+1";
- //////////////////////////////////////////
- int main() //
- {
- printf("ann = %d\n", ann );
- printf("ann[0] = %d\n", &ann[0]);
- printf("ann[1] = %d\n", &ann[1]);
- printf("ann[2] = %d\n", &ann[2]);
- }
- /*
- #include <stdio.h>
- #include <string.h>
- char ann[99]="SONY+1";
- int str_len(char *p);
- //////////////////////////////////////////
- int main() //
- {
- int v = 0;
- v = str_len(ann);
- printf("v= %d\n",v);
- }
- //////////////////////////////////////////
- int str_len(char *p) //
- {
- int v = 0;
- while( p[v]!=0) { v++; }
- return v;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement