The tag has no wiki summary.

learn more… | top users | synonyms

-2
votes
0answers
28 views

C function not returning its declared type [closed]

In the following code, the count_to_ten function is declared as returning int but doesn't actually return a value. Why is this ...
-2
votes
0answers
22 views

Type casting in scanf() [closed]

Here is a piece of code int n; scanf("%d",&n); if in input i m giving a character say A .. scanf is not taking it in n why, should it not ...
0
votes
0answers
14 views

gcc command for converting c code to MIPS assembly code [migrated]

I was studying about MIPS assembly Language. I heard that there is a gcc command for converting c source code to MIPS Assembly code.
2
votes
1answer
215 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
119 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
2k views

Why do negative array indices make sense?

I have came across a weird experience in C programming. Consider this code: ...
2
votes
2answers
295 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? ...