+ 6

Find the output of the following program.

void main() { int i=065, j=65; printf("%d %d", i, j); } A. 53 65 B. 65 65 C. 065 65 D. 053 65

7th Feb 2018, 9:47 AM
Madhusudan Saini
Madhusudan Saini - avatar
3 Respuestas
+ 2
A is the Right Answer
23rd Jun 2018, 7:12 PM
Madhusudan Saini
Madhusudan Saini - avatar
+ 9
A 😃
7th Feb 2018, 9:51 AM
Vukan
Vukan - avatar
+ 6
Option : A Reason: 65 - is an integer of base 10, i.e, a decimal number. 065 - is an octal number and its decimal equivalent is 53 065=6∗8^1+5∗8^0
7th Feb 2018, 12:45 PM
Diwakar
Diwakar - avatar