I want to reverse the number given by the user. I wrote the code in such a way that it takes the number of digits of number and the input and reverses it. As even the limit of 'long long' is 19 digits, what can I do so that the code works even if the number of digits in the input are greater than 20? [Without using third party libraries]
#include<iostream>
using namespace std;
void make_int(int a[],long long int n)
{
    int i=0;
    while(n)
    {
        a[i]=n%10;
        i++;
        n=n/10;
    }
    for(int j=0;j<i;j++)
        cout<<a[j];
}
int main()
{
    int N;
    cin>>N;
    int *tc = new int[N];
    long long int num;
    cin>>num;
    make_int(tc,num);
    return 0;
}
 
    