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

An enigma

Name: Anonymous 2009-06-09 18:35

So, /prog/, a C question: I have int somevariable [10][10]; How do I declare a pointer to the first row of this array?

Name: Anonymous 2009-06-11 15:29

>>35
your sepples doesn't work.
also, c does it better.
#include <stdio.h>
#define ARRAY_LENGTH(array) (sizeof (array)/sizeof *(array))
int main(void)
{ char s[] = "abc";
  printf("%zu\n", ARRAY_LENGTH(s)); }


also, back to /b/, please. it was the broken bbcode that gave you away.

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