%c in C code example
Example 1: how to use ? in c
result = comparison ? if_true : if_false;
Example 2: %.*s in c
example:
printf("%.*s",3,"hello");
output:hel
here 3 represents the length of the string to be printed in the "hello string".
Example 3: %= in c
Modulus AND assignment operator. It takes modulus using two operands and assigns the result to the left operand.