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 pragma c?
Explain the difference between malloc() and calloc() function?
What is #include called?
Is anything faster than c?
What does the file stdio.h contain?
What does double pointer mean in c?
How do you define structure?
Why ca not I do something like this?
What is a void * in c?
What is #line in c?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
Is it possible to execute code even after the program exits the main() function?
What is the modulus operator?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
hi, which software companys will take,if d candidate's % is jst 55%?