c program

How do I display vi / vim text editor line numbers while writing a shell script or c program? How can I turn on or off this feature on Linux, Apple OS X, or Unix-like operating systems?

{ 38 comments }

Q. I’ve a c program and I’d like to run in Linux. A. C program need to compile and run in Linux using cc or gcc command. When you invoke GCC (GNU C Compiler), it normally does preprocessing, compilation, assembly and linking for you. For example to compile hello.c program , type the following command: […]

{ 11 comments }

Q. Can you give me example for If else statement in C Program under Linux or TC? A. C follows universal syntax for if..else. You can use any complier GNU Linux gcc or UNIX or old good TC. if..else syntax General if..else syntax is as follows: if ( condition ) { expr_set1; } else { […]

{ 271 comments }

Q. I am new to Linux but not to c programming. At university we are using Turbo C compiler under DOS/Windows XP to write and compile C programs. Under Linux I’ve small program called test.c. How do I compile and see the output of C program in Linux? Note I’m using Fedora Core Linux. A. […]

{ 51 comments }

How do I compile C program and create an executable file under Linux or UNIX operating systems?

{ 69 comments }

How do I determine the file type under UNIX or Linux like operating systems?

{ 3 comments }