Hi to all...
I am getting a warning, i am trying to avoid that but its not sorted out..Please suggest me to avoid that warning.
my code is as follows..
const char var[][2][5]={
{"1.95","3.70"},
{"2.40","4.60"},
{"2.70","5.70"},
{"6.60","13.40"},
.
.
.
.
};
void fun(int col,int row,char *str)
{
...
... //(here i am printing that string...)
}
main()
{
fun(var[45][1]);
}
My definition of fun function, array, main function are in the same file.....
main.c(11498): warning: passing arg 3 of `fun' discards qualifiers from pointer target type
So this is the warning i am facing...please suggest me how can i avoid that warning...