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 c token?
Can we increase size of array in c?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
what is stack , heap ,code segment,and data segment
Where in memory are my variables stored?
What does the file stdio.h contain?
Why is it usually a bad idea to use gets()? Suggest a workaround.
What is a structure and why it is used?
What are enumerated types?
What are the different types of data structures in c?
How can you call a function, given its name as a string?
What do you understand by normalization of pointers?
List out few of the applications that make use of Multilinked Structures?
What is storage class?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?