fork download
  1. #include <stdio.h>
  2. int main(int argc, char *argv[])
  3. {
  4. int index;
  5. char array_characters[96], array_numbers[96], buffer;
  6. FILE *fileone, *filetwo, *filethree;
  7. if (fileone = fopen(argv[1], "r"))
  8. {
  9. printf("\nFileone Opened Successfully");
  10. if (filetwo = fopen(argv[2], "r"))
  11. {
  12. printf("\nFiletwo Opened Successfully");
  13. }
  14. else
  15. {
  16. printf("\nFiletwo Open Failed");
  17. }
  18. }
  19. else
  20. {
  21. printf("\nFileone Open Failed");
  22. }
  23. printf("\nMilestone One");
  24. fclose(fileone);
  25. fclose(filetwo);
  26. return 0;
  27. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(2,0): error CS1024: Wrong preprocessor directive
prog.cs(2,26): error CS1552: Array type specifier, [], must appear before parameter name
prog.cs(5,30): error CS0650: Syntax error, bad array declarator. To declare a managed array the rank specifier precedes the variable's identifier. To declare a fixed size buffer field, use the fixed keyword before the field type
prog.cs(5,49): error CS0650: Syntax error, bad array declarator. To declare a managed array the rank specifier precedes the variable's identifier. To declare a fixed size buffer field, use the fixed keyword before the field type
prog.cs(5,61): error CS0589: Internal compiler error during parsing
Compilation failed: 5 error(s), 0 warnings
stdout
Standard output is empty