Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What does %*c mean in C language?
What does %*c mean in C language?

This is the format output of C language, and %c and %y represent the data types of the data you want to output; %d means to output a decimal signed integer.

1, %u decimal unsigned integer.

2 and %f represent output floating-point numbers.

3, %s represents the output string.

4, %c means to output a single character.

5, %p indicates the value of the output pointer.

6, %e means to output floating-point numbers in exponential form.

7, %x, %X means to output unsigned integers in hexadecimal.

8, % means to output unsigned integers in octal.

9 and %g indicate that the output automatically selects the appropriate representation.

Extended data:

The role of characters in C language:

1, \n means line feed.

2, \f means to clear the screen and change pages.

3, \r means enter.

4, \t means Tab.

5. \xhh indicates that an ASCII code is expressed in hexadecimal, where hh is one or two hexadecimal numbers.

there are two types of length format symbols: H and L. H means output by short integer and L means output by long integer.

#include< stdio.h> ?

#include< string.h> ?

int main( )?

{?

char c, s[2];

int a=1234;

float f=3.141592653589;

double x=.12345678912345678;

strcpy(s, "Hello,World");

}

Reference: Baidu Encyclopedia -C language.