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


Please Help Members By Posting Answers For Below Questions

What is the value of a[3] if integer a[] = {5,4,3,2,1}?

683


Is c is a procedural language?

607


What is the difference between functions abs() and fabs()?

659


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.

1991


Why isn't any of this standardized in c? Any real program has to do some of these things.

635






about c language

1614


How can you draw circles in C?

635


What does the c in ctime mean?

583


Why is void main used?

628


When should I declare a function?

638


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

1128


What is the difference between volatile and const volatile?

575


What is a stream water?

666


Why c is called free form language?

581


what are enumerations in C

737