bbcac
asked on
"filename" is not an lvalue, but occurs in .... What does this mean?
I've written a little program that opens a file and writes to it after querying a database.
I am getting this error : ""filename" is not an lvalue, but occurs in a context that requires one"
What does that mean?
I am getting this error : ""filename" is not an lvalue, but occurs in a context that requires one"
What does that mean?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
#include <string.h>
main()
{
char filename[20];
filename = "testing\0";
}
Even this simple program doesn't work... why not? Here is the error
"filename" is not an lvalue, but occurs in a context that requires one.