New answers tagged

1 vote

What does the 4th line of this pseudocode mean?

Some hints for understanding the pseudo code: The third line of pseudo-code, considering that L is a list For each line p in L: means that we iterate for each element in the the list, and call it p ...
  • 69.6k
0 votes

Is API exactly the same as header file?

In short The term API covers at the same time an interface implementation (for the code to use) and an interface specification (for the humans to understand). While the API specification is abstract ...
  • 69.6k
0 votes

Is API exactly the same as header file?

Consider this counterexample: You have a file named math.h that contains: double sin(double x); Then the file math.c implements this function. Now you do a simple change to math.h: double dblsin(...
  • 2,473
6 votes

Is API exactly the same as header file?

Strictly speaking, the term API in the literal sense is not a physical artefact - i.e. it's not a source code file, library, binary or service. The literal form of an API is an agreed set of rules, ...
  • 10.2k
3 votes

Is API exactly the same as header file?

The .h/.c analogy is just an example. The API is a means to access functionality (of a library). Think of a literal library, a place that has a lot of books from which you can pick some to take home ...
  • 16.4k
0 votes

How to write a very basic compiler

Something that would actually be useful is a program that takes a problem description from a very limited problem set and turns it into c or C++ code that you then can copy and use. I’d be very ...
  • 38.5k

Top 50 recent answers are included