gcc --help=warnings | grep -i 'enable.*warning'
.
clang --help | grep -i 'enable.*warning'
and try to figure out.
(a>b?a:b)
, using the if
statement.
complex.h
, do you
need to link your program with -lm
option?
man complex|grep '\-lm'
.
int i=1; printf("%i\n",i++); printf("%i\n",++i);Explain.
int i=1; printf("%i %i\n",i++,++i);Hint: compile with
-Wall
.
while(condition)body
using the for
loop.
for(init;cond;inc)body
using the while
loop.
do body while(condition);
using the for
loop.
if(0) printf("0 is true\n"); else printf("0 is false\n"); if(7) printf("7 is true\n"); else printf("7 is false\n");Hint: Wikipedia → C syntax → Selection statements.