Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arrayfunc()
- {
- char chararray[]="savn"; //initialization of char array.
- char chararray1[5]="savn";// another way of initialization.
- char chararray2[3]="savn";// check this
- printf("chararray[]: %s, chararray1[7]: %s, chararray2[5]: %s ",chararray,chararray1,chararray2);
- //check the above line.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement