iOS Basic Learning Day 6th

Source: Internet
Author: User

    //the ASCII code value of 0 is//It's all strings .    Charname1[8] ="it"; Charname2[8] = {'I','T',' /'}; Charname3[8] = {'I','T',0}; Charname4[8] = {'I','T'}; //not a string (only an array of characters).    CharName5[] = {'I','T'};
/* the role of the 1. End of string tag 2.printf ("%s", name2)  ; */
    CharName1[] ="Itcast"; CharName2[] = {'o','k'}; printf ("%s\n", name2);//output Result: Okitcastprintf ("%s\n", &name2[1]);//output Result: Kitcast
/* strlen Function: Calculates the length of the string, strlen function is declared in the String.h file. 1. The number of characters is calculated, not the word count. A Chinese character is counted as 3 characters 2. The calculated characters do not include 3. Number of digits from an address until you meet  the

iOS Basic Learning Day 6th

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.