/ Published in: C
To store large numbers into integer array by converting a string into interegr array.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <stdio.h> #include <stdlib.h> #include <string.h> int* convert(char* c) { for(i=0;i<len;i++) a[i]=c[i]-48; return a; } int main(int argc, char const *argv[]) { char c[100]; int *a=convert(c); return 0; }