Skip to main content

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.

7 votes
1 answer
354 views

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 ...
Eliot Hall's user avatar
7 votes
8 answers
670 views

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 ...
Dannyu NDos's user avatar
  • 7,371
7 votes
4 answers
2k views

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 ...
Chi_Iroh's user avatar
  • 183
1 vote
1 answer
219 views

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. ...
12431234123412341234123's user avatar
6 votes
1 answer
263 views

If you consider the following PHP+C polyglot snippet, there is a problem regarding class property access in the printf call: ...
Olle Härstedt's user avatar
6 votes
1 answer
2k views

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 ...
xiver77's user avatar
  • 2,395
4 votes
0 answers
189 views

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 ...
DialFrost's user avatar
  • 5,189
26 votes
15 answers
3k views

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 ...
Dannyu NDos's user avatar
  • 7,371

15 30 50 per page
1
2 3 4 5