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
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
Is c is a procedural language?
What is the difference between functions abs() and fabs()?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Why isn't any of this standardized in c? Any real program has to do some of these things.
about c language
How can you draw circles in C?
What does the c in ctime mean?
Why is void main used?
When should I declare a function?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What is the difference between volatile and const volatile?
What is a stream water?
Why c is called free form language?
what are enumerations in C