Factsheet
Is C still alive?
Am I stupid or is C stupid?
C Isn't a Programming Language Anymore
Learning C in 2018
C is neat and simple to learn and understand. C++ has lots more bells and whistles which can be handy to know but ultimately it's so complex that no human can fully understand the language.
Since C is pretty much a subset of C++ I'd suggest that learning C is a good way to start no matter what you end up doing. You can learn a bit of C and then decide if you want to move on to C++ from there.
More on reddit.comWhat is USB-C?
What is USB-B?
Videos
I've studied C programming basics in school and college, then there are many languages java python etc etc...
Though I'm not working in coding field... out of curiosity, i want to know IS C STILL ALIVE?... if yes can I fresh start a career with it
For the past few days I have been working and working on an assignment for a course that I am taking. It is in C obviously and involves MPI as well. The objective is to solver a 2D domain finite-difference problem. But everytime I run the code, how much I perfected it, it returned me an error. The residual was always going to infinity. Even, I handcalculated few steps just to be sure that I was writing the code correctly. None worked.
And tonight I finally found the culprit. The below code was breaking whatever I did.
#define PI 3.14159265358979323846 #define P(i, j) p[j * (solver->imax + 2) + i] #define RHS(i, j) rhs[j * (solver->imax + 2) + i]
But, the when I gave parentheses to the indexes, it worked. I have absolutely no fricking idea why this happens. I haven't touched any other line in the whole code but just this.
#define PI 3.14159265358979323846 #define P(i, j) p[(j) * (solver->imax + 2) + (i)] #define RHS(i, j) rhs[(j) * (solver->imax + 2) + (i)]
Can someone please tell me if there is functionally any difference between the two? I was honestly thinking of dropping the whole course just because of this. Every single person got it working except me. Although I didn't score anything for the assignment I'm happy to have found the reason :)