C

Asked • 05/10/19

What is the >>>= operator in C?

Given by a colleague as a puzzle, I cannot figure out how this C program actually compiles and runs. What is this `>>>=` operator and the strange `1P1` literal? I have tested in Clang and GCC. There are no warnings and the output is "???" #include <stdio.h> int main() { int a[2]={ 10, 1 };  while( a[ 0xFULL?'\\0':-1:>>>=a<:!!0X.1P1 ] ) printf("?");   return 0; }

1 Expert Answer

By:

Anonymous A. answered • 05/22/19

Tutor
4.8 (4)

Computer programmer with 10+ years experience

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.