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 do we write return 0 in c?
What are reserved words with a programming language?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Not all reserved words are written in lowercase. TRUE or FALSE?
Explain the difference between structs and unions in c?
What is storage class?
What is the Purpose of 'extern' keyword in a function declaration?
What do you understand by normalization of pointers?
Do you have any idea how to compare array with pointer in c?
can anyone suggest some site name..where i can get some good data structure puzzles???
Explain how can I prevent another program from modifying part of a file that I am modifying?
Is there anything like an ifdef for typedefs?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is new line escape sequence?
What is nested structure with example?