Skip to content

Code error #5

@moghadas76

Description

@moghadas76

https://github.com/Infatoshi/cuda-course/blob/master/03_C_and_C%2B%2B_Review/01%20Pointers/04.c

test.cu(22): error: a value of type "void *" cannot be assigned to an entity of type "int *"
ptr = malloc(sizeof(int));
^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions