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
Where in memory are my variables stored?
What is fflush() function?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is the right type to use for boolean values in c? Is there a standard type?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
Can a variable be both const and volatile?
Can we change the value of constant variable in c?
What is the difference between arrays and pointers?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
What is function in c with example?
What is the size of a union variable?
formula to convert 2500mmh2o into m3/hr
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is the purpose of clrscr () printf () and getch ()?
What is cohesion in c?