Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ternary-operator file #6008

Conversation

javieer-alvarez
Copy link

@javieer-alvarez javieer-alvarez commented Jan 22, 2025

Description

A new Markdown file, ternary_operator.md, was created in the path docs/content/c/concepts/operators/terms/ternary-operator/ternary-operator.md to provide a clear and concise explanation of the ternary operator in C. The file includes a definition of the ternary operator as a compact alternative to if-else statements, its syntax with detailed explanations, a practical example demonstrating its use to determine the maximum of two numbers, key points outlining best practices and limitations, and an additional use case for checking if a number is odd or even. My motivation is to ensure systems are increasingly optimized to promote the improvement and development of technology. The first step is to facilitate knowledge for those who share the same mindset to achieve this goal. Key terminology is highlighted in bold to enhance clarity and understanding, and the document is designed as a valuable educational resource and quick reference for programming in C.

Issue Solved

Closes #5934

Type of Change

  • Adding a new entry
  • Updating the documentation

Checklist

  • [!] All writings are my own.
  • [!] My entry follows the Codecademy Docs style guide.
  • [!] My changes generate no new warnings.
  • [!] I have performed a self-review of my own writing and code.
  • [!] I have checked my entry and corrected any misspellings.
  • [!] I have made corresponding changes to the documentation if needed.
  • [!] I have confirmed my changes are not being pushed from my forked main branch.
  • [!] I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • [!] I have linked any issues that are relevant to this PR in the Issues Solved section.

Created "terms" and "ternary-operator" folders and added term entry "ternary-operator" file.
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@SaviDahegaonkar SaviDahegaonkar self-assigned this Jan 22, 2025
@SaviDahegaonkar SaviDahegaonkar added c C entries new entry New entry or entries status: under review Issue or PR is currently being reviewed labels Jan 26, 2025
@SaviDahegaonkar SaviDahegaonkar added invalid This doesn't seem right; not eligible for Hacktoberfest c C entries new entry New entry or entries status: under review Issue or PR is currently being reviewed and removed c C entries new entry New entry or entries status: under review Issue or PR is currently being reviewed invalid This doesn't seem right; not eligible for Hacktoberfest labels Jan 30, 2025
@SaviDahegaonkar
Copy link
Collaborator

Hey @javieer-alvarez , Thank you for contributing to docs. Unfortunately, we can't review this PR as it does not follow the codeacademy style guide, and is missing important parts such as the metadata of the file, proper formatting etc.

Please refer to the style guide and do the necessary changes and raise a PR again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right; not eligible for Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Term Entry] C Operators: Ternary Operator
3 participants