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]