Can you tell me what calculations you do in C?

Asked 2 years ago, Updated 2 years ago, 64 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.