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 / dhaval
the main point of answer is that the whole program will run
without a single damn error as it ignores %d (called the
conversion character) and just print "a" as text.
so the answer will be a.
if we write the printf statement as printf ("%d",a); in this
case it shall print the answer as 18. dont know why it
prints 18. am on my way to discover this problem out. i will
post a new answer if at all i shall find an answer to this query
regards,
Dhaval. (L.j college of computer applications.)
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
what is a constant pointer in C
What is difference between Structure and Unions?
What is c language and why we use it?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
Explain the properties of union. What is the size of a union variable
Is it better to bitshift a value than to multiply by 2?
How can I find the modification date and time of a file?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Subtract Two Number Without Using Subtraction Operator
why wipro wase
What is the use of volatile?
What are the restrictions of a modulus operator?
What do you mean by invalid pointer arithmetic?
What is operator precedence?