Skip to content

Seems ch3 3.61 is not correct, fyi is a possible correct one #4

@dufufeisdu

Description

@dufufeisdu

/**
P 3-61
long cread(long *xp) {
return (xp ? *xp : 0);
}
Explain:
The key point is to avoid * and xp come together.
*/
long cread_alt(long xp) {
long
a=0;
return *(xp? xp:a);
}

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