---
title: "Fun with switch case, Part II"
url: https://daily.dev/posts/fun-with-switch-case-part-ii-ibainjzjo
source_url: https://c-for-dummies.com/blog/?p=6263
type: article
source: "C For Dummies"
published: 2024-03-02T08:05:50.315Z
updated: 2024-05-09T08:20:02.615Z
tags: ["c", "recursion"]
reading_time: 2
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Fun with switch case, Part II

**[C For Dummies](https://daily.dev/sources/cdummies)** · 2 min read · 1 upvotes · 0 comments

## Summary

This post explores the switch-case structure, focusing on the default condition and its placement within the switch block. It highlights that the default statement is optional and can be placed anywhere in the switch block. The post also mentions that switch-case offers a primitive form of recursion.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://c-for-dummies.com/blog/?p=6263>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#c](https://daily.dev/tags/c), [#recursion](https://daily.dev/tags/recursion)

[View this post on daily.dev](https://daily.dev/posts/fun-with-switch-case-part-ii-ibainjzjo)
