Program to rotate an array by n elements in C++
Given an array like Rotating this array to the right by 3 will give: Given below is a program to rotate an array to the right by n elements. The output of the program:
How to develop C/C++ projects using Eclipse?
There are two ways by which you can develop C/C++ using Eclipse. Suppose you want to use Eclipse only for C/C++ development, then the better option is to install Eclipse for C/C++. But if you are using Eclipse for other projects on languages like Java, then you can install the CDT plugin. Go to Help>Install [...]
Dennis Ritchie: 1941-2011
If you are a Unix/Linux fan or a person who loves C programming, there is no chance that you have not heard of the name Dennis Ritchie. Dennis Ritchie is now no longer amidst us. We at Joys of Programming will like to remember him for his outstanding contributions to the Unix Development and as [...]
GCC/G++: How to compile a C++11 code?
ISO has recently released the C++11. It was formerly called the C++0x. One of the features of C++11 is the atomic types. We use a very simple program which uses the atomic types to show how to compile a C++11 code Let’s compile the code You will notice that we get some errors during compilation. [...]
GCC/G++: How to compile a C++0x code?
ISO has recently released the C++11. It was formerly called the C++0x. One of the features of C++0x is the atomic types. We use a very simple program which uses the atomic types to show how to compile a C++0x code Let’s first compile the code You will notice that we get some errors during [...]
C: Difference between functions func() and func(void)
Most programmers in C write fname() to specify a function which takes no arguments. Though the program will work correctly, but according to the C standard, when you specify fname(), you are actually saying that the function fname will take any number of arguments. So, if you want to say that the function fname will [...]
ISO C++11 Released
ISO/IEC 14882:2011 popularly known as C++11 is released. You can purchase the release document. In the C++ world, this standard was initially known as C++Ox. If you are looking for the support of C++11 in GCC, you can refer here.