(2) 2*sqrt(x)+(a+b)/(3.0*sin(x))
(3) g*m 1*m2/(r*r)
(4) Double? Pi? = 3. 14
2.0*pi*r +? pi*r*r + cos(45.0*pi / 180.0)
(5) Loan * interest rate * pow(( 1+ interest rate), month) /(pow(( 1+ interest rate), month)-1)
Extended data:
Pointer:
If a declared variable is preceded by an *, it indicates that it is a pointer variable. In other words, the variable stores an address, and * is the content retrieval operator, which means to retrieve the content stored in this memory address. Pointer is one of the main characteristics that distinguish C language from other contemporary high-level languages.
Pointers can be not only the addresses of variables, but also the addresses of arrays, array elements and functions. Pointers can be used as formal parameters to get multiple return values in the process of function calling, unlike return(z) which can only get one return value.
Pointer is a double-edged sword, and many operations can be expressed naturally through pointer, but incorrect or excessive use of pointer will bring many potential errors to the program.
Baidu encyclopedia -c language