DIGIT-ARC read-only archive · snapshot: July 23, 2026

C++ Adding, then loop operation

3 posts · originally from https://geek.digit.in/community/threads/c-adding-then-loop-operation.95701/

S
ShArP Original post #1
Aug 15, 2008 at 9:08 PM
I am very new to programming and I am trying to create an application that will add 1 to 0000000000000000000, once it has added one and creates 0000000000000000001, then if i run the function again it will make 0000000000000000001 equal 0000000000000000002.

Any help would be greatly appreciated
dheeraj_kumar
Aug 16, 2008 at 2:02 AM
0000000000000000000 is no different from 0 (assuming you're just processing them as numbers, not strings)

Code:
int num = 0;

void function()
{ 
  num = num + 1;
}
L0rd_Aryan
Aug 16, 2008 at 12:59 PM
are you talking about displaying it in a number of zeros ???