C is a general-purpose computer programming language used for operating systems, libraries, games and other high performance work. It was developed in 1972 by Dennis Ritchie for use with the Unix operating system. C++ is an object-oriented derivative of C.

learn more… | top users | synonyms

-1
votes
1answer
19 views

Books for studying C programming [on hold]

I'm studying in math department and have pretty good skills in math, but I have never had experiences with programming. I was going to self-study C programming, and my friend advised me the book of ...
-3
votes
0answers
25 views

Issues with printf() and strlen() in C [closed]

So I am trying to make a very simple program which takes as input two strings a and b and then prints our their string sizes and concatenates them and prints it out. Something like: Input: "abcd" ...
0
votes
0answers
37 views

Find the index of minimum number that is greater than key given of a sorted array, does these two functions return same result?

Give an array of integer has been sorted (non-decreasing order), we need find the index of minimum number number that is greater than key given, I wrote two functions, they're identical except the ...
0
votes
0answers
6 views

Visual C++: C language error [migrated]

'm programming using visual C++ but the language I'm coding is C. I got this error stating: c:\users\eman.mohammed\documents\visual studio 2010\projects\main testing\printing variables.cpp(109): ...
1
vote
0answers
22 views

How is a complied program updatable? [closed]

We all know in the case of web sites, to make update just means opening the code, editing it and saving it. And to view the changes we just have to refresh the browser. But what about in the case of ...
0
votes
1answer
26 views

Simple error in C [closed]

I cannot determine why the Celsius values in this code are producing rubbish values. (Look at second statement in the first for-loop). CODE: ...
2
votes
1answer
321 views

Numerical stability of C++: will a C++ program using a float or double library return the same arithmetical results on two different computers?

Say I am using boost or the built-in float or double mathematical libraries of my C++ compiler. I distribute the program. Will the execution of my C++ program on different machines given different ...
4
votes
1answer
146 views

Is the Syntax of C Language completely defined by CFGs?

I think the Question is self sufficient. Is the syntax of C Language completely defined through Context Free Grammars or do we have Language Constructs which may require non-Context Free definitions ...
6
votes
6answers
3k views

Why do negative array indices make sense?

I have came across a weird experience in C programming. Consider this code: ...
2
votes
2answers
513 views

Handling untrusted string input in printf in C [closed]

I stumbled upon the MSDN Best Practices for Code Review. Under the section “Untrusted Inputs”, I found following which I didn't understand properly. Why is the following considered safe? ...