Skip to content

Instantly share code, notes, and snippets.

View gimmetehcodez's full-sized avatar

gimmetehcodez

View GitHub Profile
#include <stdio.h>
// this is INCREDIBLY OBVIOUS so please stop being stupid.
int obvious(int a[], int idx)
{
return a[idx];
}
int main()
{
#include <stdio.h>
#include <errno.h>
#include <string.h>
void print_spaces(int spaces)
{
while (spaces-- > 0)
putchar(' ');
}
#include<stdio.h>
int main(void)
{
printf("hello, world!\n");
}
/* end of thingamajig. */
#include <stdio.h>
#include <errno.h>
#include <string.h>
void print_spaces(int spaces)
{
while (spaces-- > 0)
putchar(' ');
}
/* Copyright (C) 2016 Ryan Klingler
polymorphism.c : Polymorphism in C
A simple example of experimenting with polymorphism in C,
mainly to prove it's possible. */
#include <stdio.h>
#include <stdlib.h>
typedef void *Object;