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...
Search Result
Collapse
3 results in 0.0022 seconds.
Keywords
Members
Tags
-
How to clear these warnings?
-
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]; };
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));
-
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...