error: incompatible types in assignment

Posted by ambika on Stack Overflow See other posts from Stack Overflow or by ambika
Published on 2010-03-31T10:18:28Z Indexed on 2010/03/31 10:23 UTC
Read the original article Hit count: 267

Filed under:
|

My C code

#include <stdio.h>
#include <stdlib.h>
#include "help.h"

int test(int x, P *ut) {
    int point = 10;

    ut->dt[10].max_x = NULL;
}

int main(int argc, char** argv) {

    return (EXIT_SUCCESS);
}

my help.h file code

typedef struct{
    double max_x;
    double max_y;
}X;

typedef struct{
    X dt[10];
}P;

I got an error i.e

error: incompatible types in assignment

error comes in here

ut->dt[10].max_x = NULL;

can anybody help me. thanks in advance.

© Stack Overflow or respective owner

Related posts about c

    Related posts about error