Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

81%
+7 −0
Challenges Output 256 in many different ways

C, 8 solutions Standard C, no extensions. 1 solution snippet per line: "llll"[3]^33^333 4*4*4*4 5555-555-555-555-555-555-555-555-555-555-55-55-55-55-55-5-5-5-7-7 6666/26 (int){8<...

posted 3y ago by Lundin‭

Answer
#1: Initial revision by user avatar Lundin‭ · 2020-12-07T15:11:16Z (over 3 years ago)
# C, 8 solutions

Standard C, no extensions. 1 solution snippet per line:

```c
  "llll"[3]^33^333
  4*4*4*4
  5555-555-555-555-555-555-555-555-555-555-55-55-55-55-55-5-5-5-7-7
  6666/26
  (int){8<88}<<8
  u'\xff'+!!u'\xff'
  ~0XFFFFFeFF
  __LINE__
```

Somewhat naive solution so far, but the numerical limits of this language are causing me some head ache :) Will likely re-visit this later.

[Godbolt](https://godbolt.org/z/Ev8E53) test code, to verify that each snippet is correct and also unique, so that no character has been taken already is re-used. No `#include` is needed for the snippets themselves.