Execute the following commands to build and run a C or C++ program.
-
$ clang [command line flags] xyz.c -o xyz.out $ ./xyz.out -
$ clang++ [command line flags] xyz.cpp -o xyz.out $ ./xyz.out
Execute the following commands to build and run a C or C++ program.
$ clang [command line flags] xyz.c -o xyz.out
$ ./xyz.out
$ clang++ [command line flags] xyz.cpp -o xyz.out
$ ./xyz.out