Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why do we write return 0 in c?

1003


What are reserved words with a programming language?

1054


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1168


Not all reserved words are written in lowercase. TRUE or FALSE?

1175


Explain the difference between structs and unions in c?

958


What is storage class?

1011


What is the Purpose of 'extern' keyword in a function declaration?

1032


What do you understand by normalization of pointers?

1001


Do you have any idea how to compare array with pointer in c?

987


can anyone suggest some site name..where i can get some good data structure puzzles???

2015


Explain how can I prevent another program from modifying part of a file that I am modifying?

1034


Is there anything like an ifdef for typedefs?

1088


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.

4149


What is new line escape sequence?

1262


What is nested structure with example?

1011