Search Result

Collapse
3 results in 0.0022 seconds.
Keywords
Members
Tags
c program
  •  

  • nirmaltech28
    started a topic How to clear these warnings?
    in C

    How to clear these warnings?

    Iv written a C program for playing tic-tac-toe between a computer and a user. Iv used lots of pointer variables and passing those variables to functions to functions. Im getting some warnings and also the program is not executing properly. I dont know whether it is because of warnings or I did logical errors in the program.
    WARNING:
    1. assignment makes a pointer from Integer without a cast.
    2. passing arg1 of 'display' from incompatible...
    See more | Go to post

  • apmsbask
    started a topic Multi-Dimensional variable in struct in C program
    in C

    Multi-Dimensional variable in struct in C program

    I am stuck with how to access a 2-d array declared in a structure. For instance, I have declared a struct as follows:

    Code:
    struct sv {
    float a[10][10];
    };
    Now in main function, how to access the variable 'a'? I tried the following

    Code:
    main () {
    struct sv * p;
    p = (struct sv *) malloc (sizeof(struct sv));
    *(p->*(a+1)+1) = 20.0;
    printf("%f\n",*(p->*(a+1)+1));
    ...
    See more | Go to post
    Last edited by Niheel; May 22 '10, 03:36 AM. Reason: codetags

  • poisonvm
    started a topic C program embedded in PHP to read the serial port
    in PHP

    C program embedded in PHP to read the serial port

    I wrote a C program that is successfully able to read and write from the serial port.
    When the program is run in shell or terminal on linux it can read and write data to the micro controller.
    However when the program is embedded in PHP <?php echo exec("./send toserial.out"); ?> it is unable to send information to the micro controller.
    I have tried other programs embedded in PHP, like a C program that can read and...
    See more | Go to post
Working...