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


Please Help Members By Posting Answers For Below Questions

Is there a built-in function in C that can be used for sorting data?

737


List a few unconditional control statement in c.

555


How do you define a string?

649


What are enums in c?

651


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

642






What are pointers in C? Give an example where to illustrate their significance.

742


What happens if a header file is included twice?

580


what are # pragma staments?

1619


What is identifiers in c with examples?

670


What language is c written?

570


What is array of structure in c programming?

743


Is register a keyword in c?

627


What is the significance of scope resolution operator?

847


What is s or c?

589


What is infinite loop?

621