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

-2
votes
0answers
10 views

matrixExp in C/C++ [on hold]

Is there some kind of a library that is able to calculate exponent of a complex matrix? Or sin() and cos() in C/C++ language. I wanto also a SparseArray for large matrices with lot of zeros. ...
-2
votes
0answers
19 views

I need code of C for this function: [closed]

I need code of C for this function: unsigned int shi (unsigned int x, unsigned int y); Description: The function shi returns the result of shifting the argument x to the right by the value passed in ...
0
votes
0answers
10 views

Catch “Media Eject Event” for USB device on Windows [closed]

I want to catch "Media Eject Event" for USB device, when I choose Eject option from explorer. If I choose "Safe remove" option from system tray I can catch "DBT_DEVICEQUERYREMOVE" event. But if I ...
2
votes
1answer
245 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
132 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
392 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? ...