Skip to content

Commit a4816fa

Browse files
committed
chore: Initialize variables in main
1 parent 30da812 commit a4816fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/calculator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void calculator(int x,int y){
2929
}
3030

3131
int main(){
32-
int x,y;
32+
int x=0,y=0;
3333
calculator(x,y);
3434
return 0;
3535
}

0 commit comments

Comments
 (0)