Can you tell me what calculations you do in C?

Asked 1 years ago, Updated 1 years ago, 58 views


...

!ErrorHasOccured() ??!??! HandleError();`

...

I've never seen an operator like this in C code.

All I've seen so far is ? is to go inside a trinomial operator ? Can we use it together? I can't find anything on Google, so I'm asking here

c trigraphs operator

2022-09-22 15:32

1 Answers

In the past, keyboards didn't have | keys Several characters were grouped with ??! and expressed as |.

So !ErrorHasOccured()?!?!?! HandleError(); is actually !ErrorHasOccured() || HandleError(); On the other hand,

if (ErrorHasOccured())
    HandleError();

This is.


2022-09-22 15:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.