July 27, 2004 | GPL Compliance for Software Developers | Linking libraries |
void triangle (int n) {
int rows = 1 << n;
int i, j;
for (i = 0; i < rows; i ++) { for (j = 0; j < i; j ++) { printf (" "); } for (j = 0; j < rows; j ++) { if (i & j) printf (" "); else printf ("**"); } printf ("\n"); } }
#include <stdio.h>
void triangle (int n);
Next: Linking against static libraries Previous Top |
![]() |
Copyright © 2004, Free Software Foundation. Verbatim copying permitted provided this notice is preserved. |