Linux.com

Am I C-ing this right?

Link to this post 20 May 11

First of all there is no rule written that, the Linux users should use the Linux commands and system calls. Noway...

My friend's grand mother is using Ubuntu and of-course she is also a Linux user.

As Developer, you are not left to use Linux alone. Whatever you are doing in Linux as a Developer, all are possible with other paid OS [Hope you guessed :-) ] .

If you google it, you can find easily why c++ came . The Kernel is written in C, it can be even in asm, but very difficult to upgrade/change a single thing.

I strongly agree with whatever Marc Deop told.

Basically, its not like [ c > c++ } | [c++ > c ]. Its purely based on, what is objective of that final code output, where they going to deploy and who is going to use.

Link to this post 15 Aug 11

I really don't know what you want to express.

If u write the code with C:


#ifdef __cplusplus /* or #if defined(__cplusplus) */
Extern "C" {
#endif

/* your code below */

#ifdef __cplusplus
}
#endif

then , the c++ compiler can compile this c program.

If u write the code with C++:


#include <pthread.h> /* this can use a c head file */
#include <iostream> /* this is a c++ head file */

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board