halo all,
i was just running a simple program.
this code runs properly and gives me the address of the first element of the array.but my problem is it also gives me two warnings.Code:#include<stdio.h> #include<conio.h> int main(void) { int a[3]; printf("%u",&a[0]); getch(); return 0; }
why are these two warnings issued. i also tried to change %u to %d but the same warnings were given. i know that i can override these warnings but as i've switched to new compiler i was curious to know about it(my previous compiler didn't show any such warnings).and what should i use in place of %u to remove these errors?Code:Warning 1 warning C4313: 'printf' : '%u' in format string conflicts with argument 1 of type 'int *__w64 ' Warning 2 warning C4996: 'getch' was declared deprecated
Thanks



