Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
GCC supports 128-bit integer arithmetic
#include <stdio.h> int main(void) { const __int128 m = 3329589384618324948; __int128 n = m * m; enum { base = 10, max_width = 39 }; char a[max_width + 1] = { '\0' }; char *p = a + max_width; for (; n != 0; n /= base) *--p = (char)('0' + n % base); printf("%s\n", p); }
run
|
edit
|
history
|
help
1
Test1
Code2
edmond@DESKTOP-M2BC2LH
to upper case string
exercises
Project 3 part 2 Book v10.2
B_141212_IntercambiarPunteros
Class Friday 1/20 Inauguration Day
PuntosTriangulo
If then price calculation v1