Search:

Type: Posts; User: Hetfield

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    3,569

    Setprecision and setiosflags in C++

    In the example that i took from the deitels C book there is a statement in the code which is shown in below can you explain what does this codes means
    thank you


    using std::setprecision;
    using...
  2. Replies
    0
    Views
    2,800

    scanf properties in c

    int the example below that i took from deitels book it codes the scanf like below could you explain how we eliminate the spaces and newlines in despite of we dont specify anything in the scanf()...
  3. Replies
    1
    Views
    2,569

    scanf properties in c

    the example that i took from deitels book there is a code as seen below

    while (scanf("%d%[^0-9-]%lf", &account, name, &balance) != EOF) {
    can you explain what does it mean %[^0-9-] why do we put...
  4. Replies
    4
    Views
    6,658

    Size of a struct

    Can you help me why this code gives 40 value of as the size of the struct


    #include <stdio.h>


    struct clientData {
    unsigned int acctNum; // account number
    char lastName[15]; //...
  5. Replies
    1
    Views
    3,043

    Bitwise Operators in C

    Can you help me with this example where i take from the deitels book.
    In the example we compare the value and the displayMask value with & and we are writing 1 or 0 but the point that i dont...
  6. Replies
    2
    Views
    2,006

    %n specifier use in C

    Can you help me why %n specifier is used for in this programming example that i get from deitels book.

    #include <stdio.h>#include <stdlib.h>
    #include <time.h>

    int main()
    {
    int a[10] = { 0...
  7. Replies
    2
    Views
    3,966

    :eek: everything is just clear now thanks!

    :eek: everything is just clear now thanks!
  8. Replies
    2
    Views
    3,966

    Pointer to Array Example

    in the example that i took from the deitels book, i could not understand why do we print the sentence[1] can you help me about that dont we have to use sentence[0] instead of sentence[0]?
    thanks in...
Results 1 to 8 of 8