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 do you mean by c what are the main characteristics of c language?

572


What is main () in c?

588


What is the sizeof () operator?

625


What is hashing in c?

645


In C language, a variable name cannot contain?

745






Can a variable be both const and volatile?

676


What is a dynamic array in c?

598


Explain what is wrong with this statement? Myname = ?robin?;

1027


When is the “void” keyword used in a function?

840


Define C in your own Language.

642


What is the value of uninitialized variable in c?

577


How can a program be made to print the line number where an error occurs?

652


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

634


What is meant by realloc()?

679


Simplify the program segment if X = B then C ← true else C ← false

2588