Article 94630 of comp.lang.c: Path: winternet.com!solon.com!not-for-mail From: seebs@taniemarie.solon.com (Peter Seebach) Newsgroups: comp.lang.c Subject: Help! Can't read input from keyboard! Date: 1 Apr 1996 19:46:36 -0600 Organization: Usenet Fact Police (Undercover) Lines: 23 Message-ID: <4jq0ts$5mh@taniemarie.solon.com> NNTP-Posting-Host: taniemarie.solon.com I guess I thought I knew C, but maybe not. The following program compiles without error with gcc -g -O -Wa,ll -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes but doesn't print 3! I thought scanf and printf were asymptotic. #include int main(void) { int i = 0; (void) sscanf, "3", "%d", i; (void) printf, "%d", i; return 0; } Can anyone help? I have cast sscanf() to void to prevent it from erroring. -s