Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

%c in printf in c

PRINTF() FUNCTION IN C LANGUAGE:
In C programming language, printf() function is used to print the (“character, string, float, integer, octal and hexadecimal values”) onto the output screen.
We use printf() function with %d format specifier to display the value of an integer variable.
Similarly %c is used to display character, %f for float variable, %s for string variable, %lf for double and %x for hexadecimal variable.
To generate a newline,we use “
” in C printf() statement.
Source by fresh2refresh.com #
 
PREVIOUS NEXT
Tagged: #printf
ADD COMMENT
Topic
Name
1+5 =