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 does %c do in c?
Is it possible to have a function as a parameter in another function?
Explain 'far' and 'near' pointers in c.
How do you list files in a directory?
What is scanf () in c?
how to find anagram without using string functions using only loops in c programming
How to declare a variable?
Write the Program to reverse a string using pointers.
What is mean by data types in c?
What is the best way to store flag values in a program?
What is restrict keyword in c?
What is the method to save data in stack data structure type?
What is file in c language?
What is the difference between void main and main in c?
What is the mean of function?