I want to read file file as command line operator
But when i declare the args in main() function it returns error
the code is like the
It return the error Null pointer assignment.Code:# include<stdio.h> void main(char *args[]) { FILE *fp,*fp1; fp=fopen(args[1],"w"); fprintf (fp,"Hello i love c"); fclose (fp); }
What is the problem?