4 FAQ tagged "c_program"
Viewing 1-4 of 4 FAQ -- How you can run a c program in Linux? :
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:
cc [...] - If else statement in C Program :
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 {
expr_set2;
}
If [...] - Howto see output of C program in Linux or UNIX :
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. Under [...] - Howto Compiling C program and creating executable file under Linux / UNIX / *BSD :
Q. How do I compile C program and creating executable file under Linux or UNIX operating systems?
A. You need GNU project C and C++ compiler for compiling C program and creating an executable file. Most Unix and Linux (*BSD) start their C compiler by the name cc. But you can use gcc command to compile [...]
Viewing 1-4 of 4 FAQ - ( see all popular tags )


Recent Comments
Today ~ 32 Comments
Yesterday ~ 1 Comment
Yesterday ~ 3 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments