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

 

in Programming
156 views

2 Comments

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

2
2

1 Answer

0 votes
0 votes

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

numbers in c - GeeksforGeeks

Related questions