Skip to content

Instantly share code, notes, and snippets.

View alexanderfalgui's full-sized avatar

alexanderfalgui

View GitHub Profile
#include <stdio.h>
#include <string.h>
#define LIMIT 1024
void squeeze(char s1[], char s2[]);
/* TO StackOverflow USERS: THIS VERSION IS WHEN THE ERROR IS FIXED. */
/* Exercise 2-4. Write an alternative version of squeeze(s1,s2) that deletes each character in
@alexanderfalgui
alexanderfalgui / ex2-1.c
Created May 26, 2014 03:13
K&R C Exercise 2-1
#include <stdio.h>
#include <limits.h>
#include <float.h>
/* Exercise 2-1. Write a program to determine the ranges of char, short, int, and long
variables, both signed and unsigned, by printing appropriate values from standard headers
and by direct computation. Harder if you compute them: determine the ranges of the various
floating-point types. */
main()
{