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 / uma
printf("%d,a"); this gives an error like a value never
used..or if printf statement like printf("%d",a); then it
gives 18 as the answer because 015 is the octal number and
0*71 is 0.
so a=13+5
a=18;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can I get the current date or time of day in a c program?
Can two or more operators such as and be combined in a single line of program code?
What is "Duff's Device"?
What is a #include preprocessor?
What are different types of variables in c?
Can you explain the four storage classes in C?
What is c programming structure?
Define C in your own Language.
Why main is not a keyword in c?
When should you not use a type cast?
Explain what is the advantage of a random access file?
Why use int main instead of void main?
Why do we use return in c?
Why pointers are used in c?
By using C language input a date into it and if it is right?