Yahoo France Recherche Web

Résultats de recherche

  1. Historically, the first extensions used for C++ were .c and .h, exactly like for C. This caused practical problems, especially the .c which didn't allow build systems to easily differentiate C++ and C files. Unix, on which C++ has been developed, has case sensitive file systems. So some used .C for C++ files.

  2. 4 avr. 2010 · I am reading a book called "Teach Yourself C in 21 Days" (I have already learned Java and C# so I am moving at a much faster pace). I was reading the chapter on pointers and the -> (arrow) operator came up without explanation. I think that it is used to call members and functions (like the equivalent of the .

  3. 3 avr. 2018 · The & operator performs a bit-wise and operation on its integer operands, producing an integer result. Thus (8 & 4) is (0b00001000 bitand 0b00000100) (using a binary notation that does not exist in standard C, for clarity), which results in 0b00000000 or 0. The && operator performs a logical and operation on its boolean operands, producing a ...

  4. there are no strings in C, just character arrays that, by convention, represent a string of characters terminated by a zero (\0) character. When you pass the address of a variable to a function, you can de-reference the pointer to change the variable itself (normally variables are passed by value (except for arrays)).

  5. 25 avr. 2016 · It is commonly used to create flags, numbers that can be combined together with | (bit or) and various operations can be applied to them, such as testing whether a flag is set, setting a flag, removing a flag, etc. The reason that they can be combined together without interfering with each other is that each one is a power of two, and that is ...

  6. 1 févr. 2021 · 2. it means "unsigned int", basically it functions like a cast to make sure that numeric constants are converted to the appropriate type at compile-time. Yes, but H2CO3 said "it functions like a cast", he didn't say it is a cast! I mean, without the "u" it would be signed as that's the default for integer constants.

  7. 7 août 2019 · 0. Bonjour Virginie, si votre question porte sur l’orthographe de c’eût été , celle-ci est correcte, il s’agit du conditionnel passé « deuxième forme » (plus soutenu et moins courant que le conditionnel passé première forme ç’aurait été) qui est identique au plus-que-parfait du subjonctif, donc l’accent circonflexe est de ...

  8. 22 nov. 2011 · You have to use string compare functions. Take a look at Strings (c-faq). The standard library's strcmp function compares two strings, and returns 0 if they are identical, or a negative number if the first string is alphabetically "less than" the second string, or a positive number if the first string is "greater."

  9. 21. Format %lf is a perfectly correct printf format for double, exactly as you used it. There's nothing wrong with your code. Format %lf in printf was not supported in old (pre-C99) versions of C language, which created superficial "inconsistency" between format specifiers for double in printf and scanf.

  10. 30 mars 2011 · The * in expression means "the value stored in the address" so if c is a pointer to some char, then *c is the specific char. char *(*s); meaning that s is a pointer to a pointer to char, so s doesn't hold the address of a char, but the address of variable that hold the address of a char. answered Mar 30, 2011 at 9:55.

  1. Recherches associées