[PR #933] fix: update value at index and return SUCCESS (#932) #1471

Open
opened 2026-01-29 15:21:06 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/TheAlgorithms/C/pull/933

State: closed
Merged: Yes


Description of Change

Added a body to the empty if-block in the updateValueCArray() function of the CArray implementation. The function now updates the element at the given index position with value and returns SUCCESS upon doing so.

References

Closes issue #932

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes: Fixed the empty if-block in function updateValueCArray()

**Original Pull Request:** https://github.com/TheAlgorithms/C/pull/933 **State:** closed **Merged:** Yes --- #### Description of Change Added a body to the empty if-block in the `updateValueCArray()` function of the CArray implementation. The function now updates the element at the given index `position` with `value` and returns `SUCCESS` upon doing so. #### References Closes issue #932 #### Checklist - [x] Added description of change - [ ] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [ ] Added tests and example, test must pass - [ ] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: Fixed the empty if-block in function `updateValueCArray()` <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/933"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a>
claunia added the pull-request label 2026-01-29 15:21:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1471