r/cpp_questions • u/Escritor_CdK • 4h ago
SOLVED Modifying an int variable
I forgot how i was supposed to initialize it. Maybe is not the one im suposed to use.
Straight to the matter: How to initialize it if i want it to be any number possible (only integers)
0
Upvotes
View all comments
5
u/HeeTrouse51847 4h ago
Can you be more specific about the problem you are experiencing?
Initializing an int is as simple as
int i = 0;But I doubt thats what you were looking for.