Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What does %d mean in C language?
What does %d mean in C language?
%d: the input and output are integers -%d, long integers -%d, short integers -%hu, and unsigned integers-%u.

%s: Input and output are strings -%c characters.

%f: I/O is a floating-point type -%f double-precision floating-point type.

Knowledge expansion:

C language is a computer programming language, which has the characteristics of both high-level language and assembly language. Introduced by D.M.Ritchie of Bell Institute in America on 1972.

After 1978, C language was transplanted to large, medium, small and microcomputer. It can be used as a working system design language to write system applications, and it can also be used as an application design language to write applications independent of computer hardware.

It has a wide range of applications and powerful data processing capabilities, not only in software development, but also in various scientific research. It is suitable for compiling system software, three-dimensional and two-dimensional graphics and animation, as well as specific applications such as single chip microcomputer and embedded system development.