Questions tagged [c]
C is a general-purpose computer programming language used for operating systems, games and other high performance work.
1,330 questions
16
votes
7
answers
1k
views
Is there a recommended way to communicate scientific/engineering programming to C developers?
I have a lot of MATLAB code that needs to get ported to C (execution speed is critical for this work) as part of a back-end process for a web application. When I attempt to outsource this code to a C ...
12
votes
4
answers
3k
views
Evolution of the Win32 API [closed]
Has the Windows 32 API changed much over time? Does the Charles Petzold book "Programming Windows, 5th Edition" from 1998 still contain relevant information, or is most of it obsolete/outdated?
What ...
7
votes
6
answers
11k
views
When is C a better choice than C++? [closed]
I can't imagine that there's any reason not to use the OOP features of C++. It's is just as fast as C, and - what's more important to me - it's transparent, just as C. (I mean "transparent" that I ...
23
votes
9
answers
49k
views
How is C different from C++?
Many people have said that C++ is a completely different language than C, but Bjarne himself has said that C++ is a language that is extended from C hence that is where the ++ comes from. So why does ...
2
votes
1
answer
330
views
C library build system dependencies
This debate has cropped up on a mailing list for a project I'm involved in. Unfortunately we're quite a small bunch at the moment, so I want to ask a wider audience.
We're writing a C library (for ...
1
vote
1
answer
379
views
What is a good C or Obj-C framework for manipulating Git Repositories?
What Obj-C/C libraries have you used for manipulating git repos in your Mac apps?
I am working on a Mac app that I would like to be able to clone and modify git repos. Using git directly is not an ...
1
vote
3
answers
363
views
Materials on structural languages design? [closed]
There is plenty of material about designing software for object oriented programming. Do you know of any good materials for pure structural programming? I am working purely in C and while I can use ...
9
votes
21
answers
17k
views
Should I Learn C/C++ Even If I Just Want To Do Web Programming? [duplicate]
Possible Duplicate:
I don't know C. And why should I learn it?
My goal is to be able to create online apps and dynamic, database driven websites. For instance, if in the future I get the idea for the ...
2
votes
5
answers
380
views
how to evaluate own project
I am working on a open source project in pure C, that I have started some time ago, but only recently found time to add some features. I can clearly some weaknesses of my old design, so I am trying to ...
6
votes
3
answers
2k
views
Intro to C for an experienced programmer [closed]
This reply to the question "I don't know C. And why should I learn it?" has me interested in learning C. What is a good self-instruction program (textbook/website/OpenCourseWare, etc.) for someone who ...
170
votes
18
answers
202k
views
Is there any reason to use C++ instead of C, Perl, Python, etc.? [closed]
As a Linux (server side) developer, I don't know where and why should I use C++.
When I'm going for performance, the first and last choice is C.
When "performance" isn't the main issue, programming ...
10
votes
3
answers
2k
views
Is macros support in a programming language considered harmful?
The first abuse that comes to my mind in C is:
#define if while
But at the same time it is extremely handy and powerful when used correctly.
Something similar happens with Common Lisp macros.
...
18
votes
16
answers
6k
views
Would you use C, today, for a software project? [closed]
If yes, where and why would you use it?
If no, please provide an explanation to why C is not acceptable to you.
8
votes
3
answers
4k
views
What are the common misuses of "enum" in C?
I have seen C code where people used enum heavily. But all it does is confuse others. In many places plain integers can do the same thing with less ambiguity. What are the common misuses of enum?
2
votes
5
answers
612
views
What are the common mistakes when you are a good coder in C and PHP and you start coding in Java ? What are good tips when switching? [closed]
What apsects of Java are the most diificult to learn when coming from such a background? What common mistakes do people make ? What are the top timesaving and produtivtity increasing tricks ?
If you ...
48
votes
16
answers
24k
views
Languages on a resume: Is it better to put "C/C++" or "C, C++"? [closed]
I'm graduating in a couple of weeks, and my resume (as expected) lists the languages that I've had experience with. Previously I've put "C/C++", however back then I didn't have that much experience ...
35
votes
13
answers
23k
views
Low level programming - what's in it for me? [closed]
For years I have considered digging into what I consider "low level" languages. For me this means C and assembly. However I had no time for this yet, nor has it EVER been neccessary.
Now because I ...
2
votes
1
answer
321
views
How can I move a library inside a project's source tree and compiling static binaries?
How can I move a library inside a project's source tree and compiling static binaries?
I want to use a particular tool that utilizes ANCIENT binaries without upgrading it's API usage. This way I can ...
1
vote
1
answer
603
views
Help me construct a list of best approaches for new C and C++ developers [closed]
Not specific code writing practices. Please also include reasoning.
My start:
use GCC or Clang
gcc because it is unchallenged in the amount of static checking it can do (both against standards and ...
9
votes
3
answers
2k
views
Is Clang/LLVM ready for prime time? [closed]
Clang is able to be used instead of gcc? What your experience on that? What disadvantages there are yet?
Performance of compilation is very better than gcc but about performance of code generated ...
45
votes
5
answers
130k
views
What are the fundamental differences between C and C++? [closed]
Many tend to write "C/C++", as if they were the same thing. Although they share many similarities, they are clearly not the same.
But what are really the fundamental differences between C and C++? Is ...
15
votes
10
answers
5k
views
What makes C developers so curious if "i++ == ++i"? [closed]
Just a random observation, it seems that on StackOverflow.com, there are questions about if "++i == i++". That question gets asked all the time though, I think I saw it asked about 6 or 7 times in the ...
58
votes
15
answers
95k
views
I don't know C. And why should I learn it? [closed]
My first programming language was PHP (gasp). After that I started working with JavaScript. I've recently done work in C#.
I've never once looked at low or mid level languages like C.
The general ...
7
votes
6
answers
18k
views
Why should we use low level languages if a high level one like python can do almost everything? [closed]
I know python is not suitable for things like microcontrolers, make drivers etc, but besides that, you can do everything using python, companys get stuck with speed optimizations for real hard time ...
12
votes
4
answers
2k
views
If you favor "T *var", do you ever write "T*"? [duplicate]
Possible Duplicate:
int* i; or int *i; or int * i;
Thinking about where we place our asterisks; how do those that prefer to keep the "pointerness" away from the type and with the identifier (int *...
37
votes
12
answers
99k
views
int* i; or int *i; or int * i; [closed]
What is your favorite method to declare a pointer?
int* i;
or
int *i;
or
int * i;
or
int*i;
Please explain why.
see also: http://www.stroustrup.com/bs_faq2.html#whitespace
24
votes
16
answers
18k
views
Is it ok if I don't know C but I am good with C++? [closed]
I am pretty good with C++, good as in I am comfortable with the language, I have read Accelerated C++ and done almost all the exercises.
However, I have a big problem. Do I need to learn C? I have ...
152
votes
6
answers
44k
views
Why hasn't a faster, "better" language than C come out? [closed]
With all the new "modern" languages out today, how is it that C is still heralded as the fastest and "closest to the machine"? I don't really believe in there ever being only one correct way to do ...
63
votes
11
answers
2k
views
Have you dealt with space hardening?
I am very eager to study best practices when it comes to space hardening. For instance, I've read (though I can't find the article any longer) that some core parts of the Mars rovers did not use ...
86
votes
19
answers
74k
views
Why isn't OCaml more popular?
I've always heard that C is the language of choice to use for embedded systems, or anything that needs to run at maximum speed. I never developed a fondness for C, mostly because I don't like pointer ...