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
How would you obtain the current time and difference between two times?
What is the difference between printf and scanf )?
How can I read data from data files with particular formats?
What is typedef struct in c?
What is c programing language?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Why is structure important for a child?
explain what is fifo?
Which header file is essential for using strcmp function?
When is the “void” keyword used in a function?
What is class and object in c?
what is uses of .net
What is a program flowchart and how does it help in writing a program?
Explain what standard functions are available to manipulate strings?
What is the difference between far and near in c?