Search:

Type: Posts; User: quzah

Search: Search took 0.12 seconds.

  1. So what is the problem exactly?...

    So what is the problem exactly?
    #include<stdio.h>
    extern int foo;

    int main( void )
    {
    if( foo == 4 )
    printf( "Mmmyep.\n" );
    else
    printf( "Mmmnope.\n" );
  2. Define it some place. Extern it some place else:...

    Define it some place. Extern it some place else:
    extern int x; /* means, 'this is declared elsewhere, but i want to know about it / use it */
    ...
    if ( x == 5 )
    ... do somethingSome other...
Results 1 to 2 of 2