Hey everyone, this is my first post here. I am currently learning C and have been writing a program that will take a command line argument and save it some where in the program.
I have googled tutorials and such but I guess I am just too dense to get to where I need.
Anyway, here is my code. What did I do wrong? What did I not learn?
Code:#include <stdio.h> int main (int a, char *file[]) { if (a>0) { char gfile[256] = file[1]; printf("%s", gfile[]); } return 0; }