Compiler output
prog.cpp: In function ‘int main()’:
prog.cpp:13:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[42]’ [-Wformat]
prog.cpp:15:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[21]’ [-Wformat]
prog.cpp:39:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[21]’ [-Wformat]
prog.cpp:49:39: warning: NULL used in arithmetic [-Wpointer-arith]
prog.cpp:78:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[21]’ [-Wformat]
prog.cpp:92:45: warning: NULL used in arithmetic [-Wpointer-arith]