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]