What is the output of the below program and how it is?

void main()
{
static int var=5;
printf("%d",var--);
if(var)
main();
}

Answer Posted / shubham

----2nd Ans----

Start
Step 1-> Declare function to convert celsius to fahrenheit
float convert (float celsius)
declare float fahrenheit
set fahrenheit = celsius * (9/5) + 32
return fahrenheit
Step 2-> In main()
declare and set float celsius = 38.00
call convert(celsius)
Stop

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1314


What is meant by inheritance?

625


What is the need of structure in c?

561


Explain how can I make sure that my program is the only one accessing a file?

616


Is main is a keyword in c?

602






What are the restrictions of a modulus operator?

628


How can you determine the size of an allocated portion of memory?

736


define string ?

662


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?

1909


Here is a neat trick for checking whether two strings are equal

558


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

4737


What is the difference between union and structure in c?

567


What is difference between arrays and pointers?

575


What are the types of i/o functions?

674


write a program to find the given number is prime or not

3830