what will be the output off the following program?
#include<stdio.h>
int main()
{
int a;
a=015+0*71+5;
printf("%d,a");
return0;
}
Answer Posted / shiv
015 is octal number its decimal equivalent is = 5 * 8 ^ 0 +
1 * 8 ^ 1 = 5 + 8 = 13
0*71 is 0
then finally , a = 13 + 0 + 5 = 18
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What oops means?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
What is modifier & how many types of modifiers available in c?
Is printf a keyword?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
Hi can anyone tell what is a start up code?
which is an algorithm for sorting in a growing Lexicographic order
What is the difference between memcpy and memmove?
What are the uses of a pointer?
What are the 4 data types?
How do we declare variables in c?
Explain how can I remove the trailing spaces from a string?
Can you please compare array with pointer?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
How can variables be characterized?