I am having problem compiling my following program:
It gives me a lot of error messages such as "format ‘%u’ expects type ‘unsigned int’, but argument 2 has type ‘char *’" and the same thing goes for the other two lines. Why I am getting this kind of messages? I have also seen that this message doesn't appear when I run the program. Then why I am getting this warning message only during compilation and not during the execution?Code:# include <stdio.h> int main() { char x[]="Amar",y[]="Akbar",z[]="Anthony"; printf ("%u\n",x); printf ("%u\n",&y[0]); printf ("%u\n",&z[0]); }
Bookmarks