156 views
#include<stdio.h>
int main()
{
char num = '\011';
printf("%d",num);
return 0;
}

As explained in the above link provided by sir,
‘\011’ will be treated as octal number its decimal equivalent is 9. Hence 9 will be printed.

Answer will be 9. for more detail, you can refer below link.

numbers in c - GeeksforGeeks

1
423 views
1 vote