> would say that he will most likely fail the tests, since he is apparently unable to think and code on his feet if he needs to copy code in this manner.
Don't say that, he'll ask you to sit the test too.
Hopefully his whoever will ask them to explain 'his' code, perhaps it's time to severely obfuscate homework answers or make them so inefficient it's ridiculous.
The answer is actually,
Code:
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <stdlib.h>
void main(void)
{
float * arr;
char in[10];
char i;
memset(i, 0, 1);
arr = malloc(pow(10,sizeof(float)));
for(; i < 10; i++)
{
gets(in);
sscanf(in, "%f", &arr[i]);
}
return;
}
void printa(float * somethingReallyLongAndStuff)
{
char z;
char i;
memset(z, 0, 2); /* lol */
for(; z < 10; z++)
printf("%f\n", somethingReallyLongAndStuff[z]);
return;
}
etc in that fashion, theres a lot more rules you could break, and potentially predictable undefined behavior to exploit