Question
1.
#include
2.
int main()
3.
{
4.
char a = '\012';
5.
6.
printf("%d", a);
7.
return 0;
8.
}
What is the output of this program?
1.
#include
2.
int main()
3.
{
4.
char a = '\012';
5.
6.
printf("%d", a);
7.
return 0;
8.
}
Answer: Option C
Was this answer helpful ?
The value '`setminus`012' means the character with value 12 in octal, which is decimal 10.
Was this answer helpful ?
Submit Solution