jeudi 21 septembre 2017

Please explain the output to this code:

#include<stdio.h>
void main()
{
   if(0xA)
   if(052)              
   if('\xeb')
   if('\012')              //what do the above 3 statements mean?
   printf("Hello World!")
   else;
   else;
   else;
   else;
 }

Output: Hello World!

so here, what is the meaning of 052, \xeb and \012? And what is the significance of the multiple else statements?

Aucun commentaire:

Enregistrer un commentaire