Skip to content

[Question][Hw7] Help me understand the type problems in example1.c #51

@sjoon2455

Description

@sjoon2455

Hi,

Could someone help me understand what type problems are in the given test/example1.c ?
Document indicates something could be potentially wrong with types of variable w and v, which I couldn't really get.
Why is each variable's type a problem here?
Is it because w is not explicitly casted to float, and v is not explicitly casted in line 7?

image

Thanks in advance (_ _)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions