I am trying to store the date in memory in form of dd/mm/yy for an assignment. And although it does what I want, it compiles with errors. Which is a problem because one of the requirements is no errors when strict ANSI/ISO compliance is on.
I am getting the error, warning:format'%11s'expects type 'char*', but argument 2 has type 'char (*)[11]'
I have already tried changing the char type and no luck
Help me pleaseCode:#include <stdio.h> #include <string.h> int main() { char date[11]; printf("What is the date?\n"); scanf("%11s",&date); printf("%s",date); return 0; }