{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreidjxuxrmdncrrwfgiq6m5ofqui3xsnve3xoreaadejfo3zij3f66m",
    "uri": "at://did:plc:4n6wgsqsqm6q2hjncgwmreey/app.bsky.feed.post/3mh3vnntj3uu2"
  },
  "path": "/post/47210489",
  "publishedAt": "2026-03-14T21:58:22.000Z",
  "site": "https://programming.dev",
  "tags": [
    "Learn Programming",
    "emotional_soup_88",
    "learn_programming",
    "17 comments"
  ],
  "textContent": "submitted by emotional_soup_88 to learn_programming\n14 points | 17 comments\n\nI saw one example\n\n\n    int x = 10;\n    int y = 5;\n\n    bool isGreater = x > y;\n\n    printf(\"%d\", isGreater);\n\n\nBut I could write this\n\n\n    int x = 10;\n    int y = 5;\n\n    printf(\"%d\", x > y);\n\n\nI am a complete beginner and I have no real reason why I would or would not want to deal with boolean variables, but I want to understand their raison d’être.\n\nEdit: typo city",
  "title": "[Beginner, C] If we can represent true/false with 1/0, why do we need the stdbool library and boolean variables?"
}