Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Astrachan strikes again.

Name: Anonymous 2015-02-13 14:04

Due to its simplicity, bubble sort is often used to introduce the concept of an algorithm, or a sorting algorithm, to introductory computer science students. However, some researchers such as Owen Astrachan have gone to great lengths to disparage bubble sort and its continued popularity in computer science education, recommending that it no longer even be taught.

Name: Cudder !MhMRSATORI 2015-02-15 22:55

#include <stdlib.h>

void main() {
printf("Insert 10 number\n");
int i;
int* n;
i=1;
while(i<=10) {
printf("Enter number now: ");
n = (int*)malloc(sizeof(int));
scanf("%d", n);
printf("You entered: %d\n", *n);
}
free(n);
return 0;
}

Name: Cudder !MhMRSATORI 2015-02-15 22:57

>>34
Possibly the best code ever written.
And don't worry, the memory leak is intentional, for efficiency purposes (free is slow).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List