C language experiment report "pointer"
Instructor: __________ Grade: __________
Experiment 5 Pointer 1, the purpose of the experiment
1, master the concept of pointers, will define and use pointer variables
2, grasp the pointer variable pointing to the array
3, grasp the use of the character string pointer Second, the experimental content
1. Enter 3 character strings and output them in order from small to large.
2. Write a function to find the length of a string of characters. Enter a string of characters in the main function and output its length.
3, improve the program, requires the use of the function: convert a string of characters into an integer. For example, if you enter the string "-1234", the function converts it to an integer value of -1234.
#include
#include
Long fun
{
Fill in the program
}
Void main
{
Char s[6];
Long n;
Printf;
Gets;
n=fun;
Printf;
}
First, third, experimental steps and process First, Fan Wenwang compiled the article, the copyright belongs to the original author, the original source all...
Fourth, the program debugging record
recommended article
- “Legal Clinic Education in Multimedia Situations”
- Research and implementation of the subject of "interest composition teaching method"
- Biological Experiment Report "Comparing Catalase and
- Middle school physics experiment report
- Chemical experiment report "density = mass divided by body
- Middle school chemistry experiment report
- National Nature Experiment Report
- Beijiao Town Center National Small Language Cooperative Learning Experiment
- Exploring the candle experiment report
- University physics experiment report
- E-commerce experiment report
- National Primary and Middle School Composition Series Training Experiment Report
popular articles
- University physics experiment report
- Hyun dance family impression sentence
- Good sentence excerpt 2019
- Organic Chemistry Experiment Report
- Respect the teacher's famous words
- Spring Festival blessing
- Relieved words
- Motivate employees
- Blessing phrase
- Not afraid of failure
- High school chemistry experiment report
- Legal maxim
- Non-mainstream sentence 2019
- Parental love
- Distressed sentence 2019
- Space mood phrase
- Weibo's famous sayings
- Physical experiment report
- experimental report
- Physical Experiment Report "Determination of Triangular Refractive Index
- Web page production experiment report
- Grateful mother's words
- Encourage words 2019
- Life motto
- University Physics Demonstration Report
- What I said to my father 2019
- Physical experiment report "Specification of spectrometer and three
- 2014 motivational phrase
- Philosophical words 2019
- Physical Experiment Report "Using Spectrometers and Transmitted Lights