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 can I direct output to the printer?
What is a buffer in c?
What does nil mean in c?
What is the purpose of sprintf?
Explain the properties of union.
What is the general form of #line preprocessor?
What is string in c language?
What is operator promotion?
What is array in c with example?
How can I send mail from within a c program?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
Why isnt any of this standardized in c?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.