Questions tagged [c]
This challenge is related to the C language. Note that challenges that require the answers to be in a specific language are generally discouraged.
66 questions
7 votes
1 answer
354 views
Automated C Golfer
Introduction Is it possible to create a program to automatically golf C code while maintaining the original functionality? That's what I hope to find out in this question. Challenge The input consists ...
7 votes
8 answers
670 views
Curry a C function pointer [closed]
Objective Given a type signature of a C function pointer represented as a string, output the (fully) curried version of it, also as a string. I/O format It is assumed that: There is at least one ...
7 votes
4 answers
2k views
Shortest C code to display argv in-order
I recently tried to produce the shortest C code possible to display all its command line arguments (which are stored in argv). I ended with a relatively small piece of code, and I was wondering if ...
1 vote
1 answer
219 views
Start a program so that /proc/self/cmdline contains a binary representation of the input number
I am sorry for the very long description. But i think some information of how /proc/self/cmdline works and how it can be used to get a integer input was necessary. ...
6 votes
1 answer
263 views
Need some feedback with PHP+C polyglot code and class/struct properties [closed]
If you consider the following PHP+C polyglot snippet, there is a problem regarding class property access in the printf call: ...
6 votes
1 answer
2k views
fastest matrix multiplication on x86
This challenge requires integration with C, so you can stop reading if you're not interested. Matrix multiplication is a simple operation, but the performance depends a lot on how efficiently the code ...
4 votes
0 answers
189 views
Tips for golfing in Objective C
Although on codingame.com, Objective C and C are two of the best golfing languages there, so I would like to know some of the best golfing methods (although I am a python person, I am currently trying ...
26 votes
15 answers
3k views
Decide a C integer literal
Objective Given an ASCII string, decide whether it is a valid C integer literal. C integer literal A C integer literal consists of: One of: 0 followed by zero or ...