Hello guys, Im at my uncle's house, with his loved laptop and a dial-up conection and I need to try some codes that i've written for a subjet at collage... so I need a simple C Compiler, I don't need an IDE sistem, just the compiler and the libs... do you know a simple compiler?
OS: Win32
Thanks a lot,
DarkArtanis
User Profile
Collapse
-
Command Line C compiler
-
On C, you can pass command line using something like this:
Code:int main(int argc, char * argv[]) { int i; printf("The arguments of %s are %d, and they are:\n",argv[0],argc-1); for (i = 0 ; argv[i] != NULL ; i++ ) printf("%d: %s\n",i,argv[i]); return 0; }
-
scanf takes from the standart input the information that you have just entered in the format that you have choose, it needs the pointers of the variable for stores that information (on c, the variables are passed by value), if you don't pass a valid pointer, C will try to evaluate the value of the variable as a memory direction and if you are lucky, that would be an invalid direction an your program will abort with a "Segmentati on Fault"....Leave a comment:
No activity results to display
Show More
Leave a comment: