Programming questions are off-topic here. Do not ask questions about how to write code in C. However, conceptual questions about computer science are more appropriate. See our help center for the scope of this site.

learn more… | top users | synonyms

-3
votes
0answers
15 views

Bob Light alternative [on hold]

I have been trying to get per frame color of different movies but using bob light expected out is not coming so is there any alternative of bob light?
0
votes
0answers
12 views

Understanding an MPI error [migrated]

I am fairly new to computer science (chemistry background) but am writing a code that uses MPI in C. Every time I compile my code I get various errors, for instance, ...
-1
votes
0answers
13 views

How can i read or write video without OpenCV? [closed]

I m trying to find video read & write library in C/C++, not OpenCV . (Open source which is verified or made by research group.) is there anyone can help me
-5
votes
0answers
54 views

Debug C code to prevent large file output [closed]

My code keeps on creating HUGE output files and I have no idea why. Here's the prompt: Write a program that reads in test grades (0.0 to 100.0) from a file called "in.dat" located in the same ...
1
vote
0answers
22 views

Is there a difference between (n - (~r % n) - 1) and (n - (abs(r) % n)) when r < 0? [migrated]

I've been studying the rotate algorithm, and came across a formula to normalize a negative number of rotations: ...
2
votes
1answer
30 views

What is this question asking for?-->Test this code, find an error in the program and “construct an instance to demonstrate the error” (in C) [closed]

I am learning the basics of the language C, and so far we have covered up to loops. This question is related to my assignment. The problem is I do not understand what the question is asking. I know ...
1
vote
2answers
57 views

use of C library in operating systems [closed]

I wonder, how is that operating systems make use of libraries as stdio.h if they themselves are the services? I am right? Is the operating system that interacts with the hardware to operations of I/O? ...
0
votes
0answers
52 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 ...
1
vote
0answers
24 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 ...
-1
votes
1answer
34 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: ...
4
votes
1answer
198 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 ...
7
votes
6answers
4k views

Why do negative array indices make sense?

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