Question
void main()
{
char data[2][3][2]={0,1,2,3,4,5,6,7,8,9,10,11};
printf("%o",data[0][2][1]);
}
What will be output if you compile following c code ?
void main()
{
char data[2][3][2]={0,1,2,3,4,5,6,7,8,9,10,11};
printf("%o",data[0][2][1]);
}
Answer: Option A
Was this answer helpful ?
%o in printf statement is used to print number in the octal format.
Was this answer helpful ?
Submit Solution