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 do you mean by c what are the main characteristics of c language?
What is main () in c?
What is the sizeof () operator?
What is hashing in c?
In C language, a variable name cannot contain?
Can a variable be both const and volatile?
What is a dynamic array in c?
Explain what is wrong with this statement? Myname = ?robin?;
When is the “void” keyword used in a function?
Define C in your own Language.
What is the value of uninitialized variable in c?
How can a program be made to print the line number where an error occurs?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
What is meant by realloc()?
Simplify the program segment if X = B then C ← true else C ← false