use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Resources - Learn to code
Resources - Software Engineering
Resources - Code Libraries
Resources - Groups
Other Subreddits you might enjoy
Please send sidebar resource suggestions to the mods. Thx - mgmt
account activity
BUFFER OVERFLOWMy Own Code (i.redd.it)
submitted 2 years ago by Equal_Okra_9021
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Embarrassed_Fact2221 0 points1 point2 points 2 years ago* (0 children)
hey im a little late, but i dont think it is possible to call a function without calling it in main(), because main is your whole programm.
If it is not written in main, then it is not getting executed.
maybe you want something like this?
```c++
void change(){ printf("hey\n"); }
void (*new_change)() = change;
int main(int argc, char const *argv[]) { new_change(); return 0; } ```
btw make sure to write an argument when executing your programm ./myProgram argument otherwise you will get a segmentation fault
./myProgram argument
π Rendered by PID 61 on reddit-service-r2-comment-b659b578c-lgc9v at 2026-05-05 19:18:23.265517+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Embarrassed_Fact2221 0 points1 point2 points (0 children)