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
if p is a string contained in a string?
Explain how do you view the path?
How are variables declared in c?
how to make a scientific calculater ?
How to write a multi-statement macro?
What is a constant?
Explain #pragma statements.
What are the different types of data structures in c?
What is wrong with this program statement? void = 10;
Which is an example of a structural homology?
Write a program to generate the Fibinocci Series
What is the purpose of sprintf() function?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
How do I use strcmp?