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 / santhosh

c guys v havi an error on
printf("%d,a");
where the semicolon is ended after "a"...
so
printf("%d",a);
then the ans is 18.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a c program in such a way that if we enter the today date the output should be next day's date.

1684


How to write a code for reverse of string without using string functions?

1580


How to Throw some light on the splay trees?

621


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

4906


How do you list a file’s date and time?

636






Explain Function Pointer?

681


why wipro wase

1832


In which header file is the null macro defined?

857


How to delete a node from linked list w/o using collectons?

2090


How do c compilers work?

612


How is null defined in c?

652


How can you increase the allowable number of simultaneously open files?

598


What is string function c?

568


When would you use a pointer to a function?

589


Which of these functions is safer to use : fgets(), gets()? Why?

635