I recently came across a question about coding golf & dagger; in which I was thinking of writing a function of type int in main , which could access all the variables inside main. But to reduce the number of characters, I was thinking of writing a function next to a variable. Something like that:
int i,f(){};
Can I do it? If yes / no, then why?
& dagger; & emsp; Code Golf is a form of recreational programming in which a given task must be solved using the shortest possible program. Reducing the number of characters in the source code is the main goal, requiring no maintenance or readability. Before commenting, consider this goal.
source share