What is the output of the following 'C' program?
main()
{
int a[5]={2,3};
printf("\n%d%d%d",a[2],a[3],a[4]);
}
A. | Garbage Values |
B. | Error |
C. | 3 2 2 |
D. | 0 0 0 |
Option: D Explanation : Click on Discuss to view users comments. |
What is the output of the following 'C' program? main() { printf("%f",sqrt(36.0)); }
A. | 6.0 |
B. | 6 |
C. | 6.000000 |
D. | None of these |
Option: C Explanation : Click on Discuss to view users comments. |
A. | -1 |
B. | 0 |
C. | -1 |
D. | Error |
Option: B Explanation : Click on Discuss to view users comments. |
A. | An error message |
B. | this can't be the input |
C. | a, b |
D. | Undefined |
Option: B Explanation : Click on Discuss to view users comments. |
A. | 263 |
B. | ASCII equivalent of 263 |
C. | Rings the bell |
D. | undefined |
Option: C Explanation : Click on Discuss to view users comments. |