4
votes
2answers
198 views

Why use typedefs for structs?

in C (ANSI, C99, etc.), structs live in their own namespace. A struct for a linked list might look something like this: struct my_buffer_type { struct my_buffer_type * next; struct ...
-1
votes
0answers
104 views

'delete' operator in dynamic memory allocation [closed]

In c++, I know that when a memory space is deallocated with a 'delete' operator and then one try to fetch what the pointer points to after the deletion, it always gives an unpredictable output. ...
3
votes
2answers
408 views

Why is C so high in TIOBE index of popularity, while C++ is just under here too, but not as popular? [closed]

I can't get my head around this. If C is so much used, but C is not C++, can someone explain to me the most important reasons that makes C more used than C++ ? Where is all this C code written for ? ...
0
votes
0answers
183 views

Why we coudnt make it? [closed]

It's been 3 years we are using c We studied C in our graduation, Now i am doing my post graduation in CS at one of the reputed college. In our graduation we studied structures, pointers, simple ...
42
votes
4answers
15k views

Why do programming languages, especially C, use curly braces and not square ones? [closed]

The definition of "C-Style language" can practically be simplified down to "uses curly braces ({})." Why do we use that particular character (and why not something more reasonable, like [], which ...
-4
votes
1answer
121 views

GCC compiler for C and other languages [closed]

I have gone through many reference documents about how a GCC compiler optimizes program. But I am not sure how actually a programmer request GCC attempt to optimize a program. Plz help answering this ...
0
votes
3answers
211 views

C/C++ in applications that do not concern performance [closed]

C is the best language (or maybe the single language) suitable for operating systems, drivers, embedded systems etc. For more complex domains like computer graphics C++ is a better choice. But these ...
-4
votes
1answer
308 views

Learning advanced programming [closed]

I'm from India and it's not really a good place for learning and education. I'm an IT student, I've been studying various programming languages like Java, C, C++, VB etc. And its my final year in ...
0
votes
2answers
216 views

Need some advice and feedback on my code's design

I am looking for feedback on the design of my program. I have a shell script call function.sh that defines a lot of helper functions. My intent is to use those bash functions defined in functions.sh ...
0
votes
3answers
231 views

Which language is more suitable heavy file tasks?

I need to write a script (based on basic functions) to process /image/audio/video files. The process is mainly filesystem tasks and converts. The database of files has been stored by mysql. The script ...
-2
votes
2answers
510 views

Difference between C under Windows and C under UNIX [closed]

Does the 'power' of the C language change with the OS under which it is used ? What exactly is the difference , from a programmer's point of view ? PS : I want to dive deep into 'C' (Advanced C) ...
-3
votes
2answers
269 views

What language Nginx using? [closed]

I like to EDIT the nginx.conf , and nginx virtual host conf files. What languages they are using for Editing? Perl ? or bash ? And I like to learn how to write module for NginX too. What language I ...
3
votes
3answers
307 views

What are the options for setting up a UNIX environment to learn C using Kernighan and Richie's The C Programming Language?

I'm a novice programmer and have been experimenting with Javascript, jQuery and PHP but felt I wasn't getting a real depth of understanding of what I was doing. So, after reading Joel Spolsky's ...
56
votes
12answers
15k views

How can I convince my boss that ANSI C is inadequate for our new project? [closed]

A few months ago, we started developing an app to control an in-house developed test equipment and record a set of measurements. It should have a simple UI, and would likely require threads due to the ...
5
votes
8answers
810 views

Is there a point to writing in C or C++ instead of C# without knowing specifically what would make a program faster?

I wrote a small library in Python for handling the xbox 360's STFS files to be used on my web applications. I would like to rewrite it for use in the many desktop programs people are writing for 360 ...
2
votes
0answers
140 views

CoffeeScript translates to JavaScript. Is there something like it for C? [duplicate]

Possible Duplicate: Is there a language that transcompiles to C with a better syntax? There are many language implementations which compile to C. However, most of them have some language ...
26
votes
4answers
2k views

C is written in C, how is this possible? [duplicate]

Possible Duplicate: How could the first C++ compiler be written in C++? I know my question goes to the underground galaxy cave where languages are born and involves some lambda math and ...
43
votes
14answers
6k views

What makes C so popular in the age of OOP?

I code a lot in both C and C++, but did not expect C to be the second most popular language, slightly behind Java. TIOBE Programming Community Index I'm curious as to why, in this age of OOP, C is ...
0
votes
1answer
357 views

going from C,C++ to php [closed]

I need some good professional advice from some of you. Till now I had worked in c and C++ with having a good exposure to telecom background.This is around 8 years since I am working on these ...
2
votes
1answer
242 views

Do C library functions generally mimic the Intel assembly language style?

I'm looking at the basic strcpy function. It is char *strcpy( char *dest, const char *src ); Which reminds me of assembly language: MOV DEST, SRC
17
votes
5answers
2k views

Why are several popular programming languages influenced by C? [closed]

The Top 10 programming languages, according to the TIOBE index seem to be heavily influenced by C: 1. Java The language derives much of its syntax from C and C++ but has a simpler object model ...
2
votes
5answers
814 views

Correct For Loop Design

What is the correct design for a for loop? Felix currently uses if len a > 0 do for var i in 0 upto len a - 1 do println a.[i]; done done which is inclusive of the upper bound. This ...
-2
votes
2answers
302 views

Why we still need C in terms of development for high level programming modules? [duplicate]

Possible Duplicate: I don't know C. And why should I learn it? I was kind of awkward in coding with C, though I am somewhat familiar with it. I like Java and C#. The reason I like to ...
5
votes
3answers
427 views

Why is scanf called scanf? (Same for printf.)

I am just curious why in the C programming language the function to read formatted input was called "scanf" as opposed to "readf". I assume it is derived from an earlier language, so in that case why ...
4
votes
8answers
840 views

Why has the rate of programming language popularization slowed down in recent decades? [closed]

If I understand correctly, there was a huge birth of programming languages during the early decades of computing, but then things have stabilized. Basically, why are many universities and industries ...
2
votes
8answers
607 views

Is C a MUST-learn language for programmer? [duplicate]

Possible Duplicate: I don't know C. And why should I learn it? I start my programming from Java, and learned PHP. Also, because of the work, I learned Objective-C. But most of the ...
43
votes
11answers
6k views

Why has C prevailed over Pascal?

My understanding is that in the 1980s, and perhaps in the 1990s too, Pascal and C were pretty much head-to-head as production languages. Is the ultimate demise of Pascal only due to Borland's neglect ...
65
votes
16answers
6k views

Do the young minds need to learn the pointer concepts?

Why did the C master Dennis Ritchie introduce pointers in C? And why did the other programming languages like VB.NET or Java or C# eliminate them? I have found some points in Google, and I want to ...
15
votes
3answers
4k views

How could the first C++ compiler be written in C++?

Stroustrup claims that Cfront, the first C++ compiler, was written in C++ (Stroustrup FAQ). However, how is it even possible that the first C++ compiler be written in C++? The code that makes up the ...
38
votes
17answers
17k views

Is the C programming language still used?

I am a C# programmer, and most of my development is for websites along with a few Windows application. As far as C goes, I haven't used it in a long time, as there was no need to. It came to me as a ...

1 2
15 30 50 per page