Skip to content

Instantly share code, notes, and snippets.

View winder's full-sized avatar
😑
why is this a feature

Will Winder winder

😑
why is this a feature
View GitHub Profile
#include <stdio.h>
void fizzbuzz(int start, int end)
{
int flag = 0;
if (start > end) return;
if (start%3 == 0)
printf("Fizz"), flag=1;
if (start%5 == 0)
printf("Buzz"), flag=1;
#include <stdio.h>
#include <math.h>
struct point {
float x;
float y;
float z;
};
#define PI 3.14159265
#include <stdio.h>
#include <math.h>
struct point {
float x;
float y;
float z;
};
#define PI 3.14159265
char *strcpy(char *dest, const char *src)
{
char *save = dest;
while(*dest++ = *src++);
return save;
}
#include <stdio.h>
int main()
{
char string1[50] = "This is a character array, it can be 50 characters.";
char string2[50];
char* ps1 = string1;
char* ps2 = string2;