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
What is the general form of a C program?
Write a program to print factorial of given number using recursion?
What does main () mean in c?
Explain what is the difference between text files and binary files?
What is an lvalue in c?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
How can I read/write structures from/to data files?
What is pass by reference in c?
Write a program to identify if a given binary tree is balanced or not.
write a c program in such a way that if we enter the today date the output should be next day's date.
I need a sort of an approximate strcmp routine?
What is 2 d array in c?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
What is the meaning of typedef struct in c?
Explain do array subscripts always start with zero?