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
why programs in c are running with out #include
What is meant by inheritance?
What is the need of structure in c?
Explain how can I make sure that my program is the only one accessing a file?
Is main is a keyword in c?
What are the restrictions of a modulus operator?
How can you determine the size of an allocated portion of memory?
define string ?
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?
Here is a neat trick for checking whether two strings are equal
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
What is the difference between union and structure in c?
What is difference between arrays and pointers?
What are the types of i/o functions?
write a program to find the given number is prime or not