mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-04-21 04:49:37 +00:00
[PR #1262] [MERGED] Update binary_to_decimal.c #1860
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/1262
Author: @Indrranil
Created: 5/24/2023
Status: ✅ Merged
Merged: 5/29/2023
Merged by: @Panquesito7
Base:
master← Head:patch-1📝 Commits (2)
9c22f1dUpdate binary_to_decimal.c7c26b20Update binary_to_decimal.c📊 Changes
1 file changed (+26 additions, -13 deletions)
View changed files
📝
conversions/binary_to_decimal.c(+26 -13)📄 Description
Removed the unused variable remainder.
Changed the variable name number to binary_number for clarity.
Removed the initialisation of number and temp since they are assigned values later.
Removed the newline character from the printf statement to improve readability.
5.Added a return statement at the end of main function.
Description of Change
References
Checklist
Notes:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.