Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
C is a general-purpose computer programming language used for operating systems, games and other high performance work.
15
votes
3
answers
5k
views
How should I mark types in C and C++ programs?
typedef struct {
int x;
int y;
} point_t;
This was intended to be consistent with C types from stddef.h like size_t or ptrdiff_t. … This question is for both C and C++. If these languages have different conventions, feel free to answer so. …
2
votes
Benefits of porting C library to C++
No, and that assuming the code will compile (you will have to make changes, C++ is not completely compatible with C, for example void * values cannot be assigned to other pointer types, and there are new … Many compilers implement both C and C++ (and probably other languages as well). The C constructs are compiled identically to C++ constructs, as there is no reason for them to behave differently. …