
Segmentation fault (core dumped) error thrown in my console as the code crashes. Please what am I doing wrong ?



SensorData struct, not the address of the value field within the struct.SensorData struct instead:Segmentation fault (core dumped)pthread_create()SensorDataSensorDatavaluerc = pthread_create(&sensor_threads[t], NULL, sensor_task, (void *)&sensor_data[t].value);rc = pthread_create(&sensor_threads[t], NULL, sensor_task, (void *)&sensor_data[t]);