[NTLUG:Discuss] OT C question

Fred James fredjame at fredjame.cnc.net
Tue Sep 27 20:35:23 CDT 2005


All
My brain must be fried, but I just don't see why this

/*   foo.c   */
#include <stdio.h>
int main(int argc, char *argv) {
        printf("%d\n", argc);
        printf("%s\n", argv[1]);
        return (0);
}

should result in this

#> ./foo one
2
Memory fault(coredump)
#>

Thank you in advance for any help you may be able to offer
Regards
Fred James





More information about the Discuss mailing list