Basic application of experimental 12--pointers 2

Source: Internet
Author: User

1. The knowledge points learned in this lesson:

(1) A string in code encryption, a string constant is a string of characters, is a sequence of characters enclosed in double quotation marks, a pointer constant pointing to the first character of the string;

(2) Do not reference the unassigned pointer, the character pointer needs to be assigned first, then reference, otherwise the value of the pointer is indeterminate, you can define the pointer, its initial value is empty;

(3) The character value ' \ s ' is the terminating character value, the parameter of the cryptographic function encrypt () is the character pointer, call the printf () function, output the string in%s format, as an output parameter, the value of the array name SA, the pointer sp, and the string "string" is the address;

(4) input and output of strings, functions scanf () and gels () with input strings, printf () and puts () output strings;

2. Problems encountered during the experiment and solutions:

(1) Pointers This is a bit difficult to understand, more content

(2) Reading, checking information

3. Experience of experiment and summary of the study in this chapter:

(1 more books, see more exercises;

(2 pointers This uses a lot of string processing functions, easy to mix.)

Basic application of experimental 12--pointers 2

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.