Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tables #2

Open
1 of 2 tasks
Vishwajith-K opened this issue Apr 5, 2021 · 1 comment
Open
1 of 2 tasks

Tables #2

Vishwajith-K opened this issue Apr 5, 2021 · 1 comment

Comments

@Vishwajith-K
Copy link
Owner

Vishwajith-K commented Apr 5, 2021

  • maintain a md table of format specifiers and corresponding data-types
  • maintain a md table having operators and their precedence (include trigraphs with remarks)
@Vishwajith-K
Copy link
Owner Author

Format Specifier Data Type
%c Character
%d Signed integer
%e or %E Scientific notation of floats
%f Float values
%g or %G Similar as %e or %E
%hi Signed integer (short)
%hu Unsigned Integer (short)
%i Unsigned integer
%l or %ld or %li Long
%lf Double
%Lf Long double
%lu Unsigned int or unsigned long
%lli or %lld Long long
%llu Unsigned long long
%o Octal representation
%p Pointer
%s String
%u Unsigned int
%x or %X Hexadecimal representation (small or caps)
%n Prints nothing
%% Prints % character
%10d 10 right aligned
%-10d 10 left aligned
%010d prepend zeroes and right align
%.2f 2 decimal positions resolution after floating point
%010.2f prepend zeros, right align for 10 characters, set resolution to 2 decimal places
%.2s first 2 characters of the string only
%0s warning
%-010d warning
%+010d right align for 10 chars, prepend zeros and mandatory sign (+/-)
%*d first argument sets alignment and second argument will be printed
%*.*f Needs 3 args - alignment, precision, number itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant