Compiler output
prog.cpp: In function ‘int main()’:
prog.cpp:12:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[42]’ [-Wformat]
prog.cpp:14:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[21]’ [-Wformat]
prog.cpp:38:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[21]’ [-Wformat]
prog.cpp:48:39: warning: NULL used in arithmetic [-Wpointer-arith]
prog.cpp:77:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[21]’ [-Wformat]
prog.cpp:91:40: warning: NULL used in arithmetic [-Wpointer-arith]