Originally Posted by
Abhas
I need to accept large intger of say 15 digits. how to do that except using array?
even if i use array, can i use getw() for accepting the whole number at one turn but storing the digits at different positions at array(i.e. one digit in each room of array) ? is there any other way?
in Pelles C....
Code:
// native type
unsigned long long int number;
// alternative method
#include <stdint.h>
uint64_t number;
That produces an unsigned 64 bit integer that will go 18 digits... as in > 999,999,999,999,999,999.
Check the help file, it's all there...