Skip to content

Don’t initialize Zero Values in loop #14

@AnandK-2024

Description

@AnandK-2024

When writing a for loop instead of writing uint256 index = 0; instead write uint256 index; as being a uin256 it will be 0 by default so you can save some gas by avoiding initialization.

for more info reach out

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions