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 / arti yadav

error

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you declare an array of three function pointers where each function receives two ints and returns a float?

770


What is int main () in c?

617


how to execute a program using if else condition and the output should enter number and the number is odd only...

1648


Are local variables initialized to zero by default in c?

541


Write a program in c to replace any vowel in a string with z?

680






if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4485


Explain how can you determine the size of an allocated portion of memory?

612


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1791


diff between exptected result and requirement?

1590


What is the purpose of the statement: strcat (S2, S1)?

636


Write a c program to demonstrate character and string constants?

1674


How do we make a global variable accessible across files? Explain the extern keyword?

1412


what is use of malloc and calloc?

1372


What is null pointer constant?

588


what are enumerations in C

716