Sunday, August 30, 2020

function prototypes : C is dumb

#include <cs50.h>
#include <stdio.h>

void cough(int n);

int main(void)
{
cough(3);
}


void cough(int n)
{
for (int i; i<n; i++)
{
printf("cough\n");
}
}


No comments:

Post a Comment