Skip to main content

The most commonly used Format Specifiers in C

Format Specifiers in C

C Format Specifiers
(Image by - Sharma Guides | Subham232330)


* Why do we use C Format Specifiers?

Format specifiers in C are used to take inputs and print output of a type. The symbol we use in every format specifier is the %. Format specifiers tell the compiler about the type of data to be given or input and the type of data that must be printed on the screen.



* The most commonly used Format Specifiers in C :


%d or %i - A decimal integer or signed integer 

%c - Signed character 

%f - Signed float

%e - A floating-point number

%s  - A string or sequence of character 

%lf - double

%Lf - Long double 

%o - Octal integer 

%u - Short unsigned integer

%ld - Long decimal integer

%x - Hexadecimal integer

%p - Print memory address in the hexadecimal form

%hd - Short integer

%lu - Unsigned long integer

%llu - Unsigned long long integer


Comments

Popular posts from this blog

Joins in DBMS

DBMS Joins: Inner, THETA, Outer, Equi Types of Join Operations Join in DBMS is a binary operation that allows you to combine join product and selection in one single statement. The goal of creating a join condition is that it helps you to combine the data from two or more DBMS tables. The tables in DBMS are associated using the primary key and foreign keys. Types of Join There are mainly two types of joins in DBMS: Inner Joins: Theta, Natural, EQUI Outer Join: Left, Right, Full Inner Join Inner Join is used to return rows from both tables which satisfy the given condition. It is the most widely used join operation and can be considered as a default join-type An Inner join or equijoin is a comparator-based join which uses equality comparisons in the join-predicate. However, if you use other comparison operators like “>” it can’t be called equijoin. Inner Join further divided into three subtypes: Theta join Natural join EQUI join Theta Join Theta Join allows you to merge two tables ba...

Excel Shortcuts - Ctrl + N, Ctrl + O, Ctrl + S, Ctrl + W, Ctrl + F4, Ctrl + H, Ctrl + K, Ctrl + PageDown, Ctrl + PageUp, Ctrl + P, Ctrl + G, Ctrl + ;, Ctrl + Space, Ctrl + 9, Ctrl + 0, Ctrl + F1, Ctrl + X, Ctrl + End, Ctrl + Home, Ctrl + Delete

Excel Shortcuts (Image by - Sharma Guides | Subham232330) Ctrl + N = To create a new workbook Ctrl + O = To open an existing workbook Ctrl + S = To save a workbook Ctrl + W = To close the current workbook Ctrl + F4 = To close excel Ctrl + H = To display find and replace Ctrl + K = To insert a hyperlink Ctrl + PageDown = To move the next sheet Ctrl + PageUp = To move the previous sheet Ctrl + P = Print File Ctrl + G = Display "Go To" dialog box Ctrl + ; = Insert the current date Ctrl + Space = Select the entire column Ctrl + 9 = Hide selected row Ctrl + 0 = Hide selected column Ctrl + F1 = Expand or Collapse ribbon Ctrl + X = Cut selected cells Ctrl + End = Move to the last cell in the worksheet Ctrl + Home = Move to the first cell in the worksheet Ctrl + Delete = Delete end of line

Photo Composition

Rules are made to be broken but are also made for a reason. Our ‘go to’ is the widely known ‘rule of thirds’ and is considered in the majority of our intentional compositions. But what other compositions do we use? 1 - Golden Spiral : Based on the Fibonacci numbers, this composition uses arcs infinitely resembling a spiral shape, which can be used to create balanced and aesthetically pleasing photos. 2 - Cross : A simple but harmonious composition using two lines, creating a midsection crosshair with the subject in the center of the frame. 3 - Tunnel : Similar to ‘leading lines’ tunnel composition is used to draw your eye to a subject using depth. 4 - L Shape : The L-shape composition appears when the elements create the “L” shape which can be (and often is) multiplied. The static horizontal and vertical lines this kind of composition presents create the feeling of rest, stillness, and harmony. 5 - S Curve : The curved lines in an S-curve composition add a sense of movement to an other...