Skip to content

Instantly share code, notes, and snippets.

View kanzash's full-sized avatar
😶‍🌫️
thinking about a lot of things a lot of the time

kanza kanzash

😶‍🌫️
thinking about a lot of things a lot of the time
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kanzash on github.
  • I am kanzash (https://keybase.io/kanzash) on keybase.
  • I have a public key ASDNZkobhkW3OTb883ejZJN6buo1Vs_eWH36XXwqrLR70Qo

To claim this, I am signing this object:

@kanzash
kanzash / studentStruct.c
Created February 17, 2017 05:50
Allows you to create a database of students with their names, ID number and e-mail. Dynamically allocates enough space for unlimited number of students to be entered. Error handling for incorrect IDs and names that are too long/nonexistent
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define ROW 50
#define COL 900
@kanzash
kanzash / Poetry.c
Created February 2, 2017 16:08
Allows user to enter a poem, ending with a period. Shows how many words in poem in total, how many lines in poem and how many words per line. No more than 50 characters per line and no punctuation allows.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int main()
{
#include <stdio.h>
#include <stdlib.h>
void freeArray(int **array, int rows, int cols) {
int i = 0;
int j = 0;
for (i=0; i<rows; i++) {
#include <stdio.h>
#include <stdlib.h>
int **createArray(int rows, int cols){
int **arrayPtr;
int i = 0;
arrayPtr = malloc( sizeof(int *) * rows);