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

-3
votes
0answers
12 views

mingw does not let me use complex.h [on hold]

I am trying to use complex.h in mingw, but it is not working. I get the error message: $ gcc complex.c -std=c99 In file included from complex.c:2: /usr/include/complex.h:25:20: _mingw.h: No such file ...
0
votes
0answers
18 views

Sequential vs Parallel Source Code [on hold]

I am a student of computer engineering. For my course of study I need to find code written in both serial and parallel (MPI), to write a report where I compared the efficiency. Browsing the ...
0
votes
0answers
12 views

Simple C/C++ library for network graph manipulation [migrated]

I'm currently working on a research project that makes use of proprietary software. I'm trying to replace the proprietary C libraries for graph representation. Doing this will make it easier to ...
-1
votes
0answers
3 views

Addition of a Number to a pointer [migrated]

#include<stdio.h> int main() { float a=10; float* p=&a; printf("%u\n",p); p=p+3; printf("%u",p); } After execution of this ...
-1
votes
0answers
4 views

Help suppressing user defined function output? [migrated]

Here is the bit of my program that is causing me this grief: ...
-5
votes
0answers
10 views

Write a program that simulates flipping a coin repeatedly and continues until three consecutive heads are tossed. c++ [migrated]

Write a program that simulates flipping a coin repeatedly and continues until three consecutive heads are tossed. c++ $#include <iostream>$ $#include <cmath>$ $#include <string>$ ...
2
votes
1answer
264 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
133 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
414 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? ...