Skip to content

Instantly share code, notes, and snippets.

View GasparVardanyan's full-sized avatar
💭
btw I use Arch ... 😄

Gaspar Vardanyan GasparVardanyan

💭
btw I use Arch ... 😄
View GitHub Profile
@GasparVardanyan
GasparVardanyan / fptr.c
Last active October 11, 2021 14:44
Something useful about function pointers in C.
# include <stdio.h>
# include <stddef.h>
// x: A function taking short and returning char.
char x (short); // Usage: char c = x ('H');
// x (); // A function
// x (short); // taking short
// char x (short); // and returning char.
// y: A pointer to a function taking short and returning char.
@GasparVardanyan
GasparVardanyan / types_in_the_c18_language
Last active May 23, 2020 22:30
Types in the C18 language
basic types # complete object types
{
char
signed integer types
{
standard signed integer types
{
signed char
short
int