if we want to convert decimal to binary we do
p=1;
while(n>0)
{
int x=n&1;
res+=lbp;
p=10;
n>>1;
}
but for verry large integers 10^18 it fails how do we convert such numbers into binary using bitwise operators
Conversion of very large integers to binary
can you just guide me how to get binary of very large numbers
@be10046.19
instead of storing binary in any datatype store it in array.
for example if u found that ith bit of given number is set then mark index i of array as 1 otherwise 0.

above algorithm works for integer range.
if u want for long long then simply increase the array size to 64.
if the size of no is 10^18 will it work?
yeah just increase ur array size to 64.