/* Use the conversion specifier */# Include # Include # Define PI 3.141593 // The first method to create a symbolic constant# Define pages 93179962# Define blurb "authentic imtation! "# Define words 65618# Define pages2 336Int main (void){Printf ("\
From: http://baike.baidu.com/view/1427555.htm
Although the C language has been used for many years, it is still necessary to read books frequently to remember some subtle things. After searching for a few minutes on Uncle Google, I couldn't find
Printf () is a formatting output function, which is generally used to output information to the standard output device in the specified format.
The call format of the printf () function is: printf ("", );
The formatted string contains two
From: http://www.cnblogs.com/adslg/archive/2008/08/22/1274164.html
Printf () is a formatting output function, which is generally used to output information to the standard output device in the specified format.
The call format of the printf ()
Original link:Https://www.runoob.com/cprogramming/c-function-printf.html#include#includeIntMain(void){Charc,S[20],*P;Inta=1234,*I;Floatf=3.141592653589;DoubleX=0.12345678987654321;P="Howdoyoudo";strcpy(S,"Hello,comrade");*I=12;C=' \x41
Format of the C language input/output functions printf and scanf, format rules such as % 5.4f and other similar issues The turbo c2.0 Standard Library provides two consoles for formatting Input and Output Functions: printf () and scanf (),
These
Let's take a look at the following instructions:
Modifier format description meaning
Int A = 1; int B = 1234; double C = 1.2345678; printf ("% 2D \ n", a); printf ("% + 2d \ n", ); printf ("% 4D \ n", a); printf ("% 2D \ n", B); printf ("% + 2d \
The printf function is called the format output function. The last letter of the keyword F indicates "format. The function is to display the specified data to the display screen in the format specified by the user.General Form of printf function
# Include
Define the function int sscanf (const char * STR, const char * format ,........);
Function DescriptionSscanf () converts and formats the STR string based on the format string. For more information about format conversion, see scanf ().
functionsscanfintSSCANF (Const Char* S,Const Char*format, ...); Read formatted Data from stringReads Data fromS and stores them according to parameter format into the locations given by the additional arguments, as ifSCANF was used, but reading
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.