void main()

{

static int i=5;

if(--i){

main();

printf("%d ",i);

}

}

Answer Posted / susie

Answer :

0 0 0 0

Explanation:

The variable "I" is declared as static, hence memory for I
will be allocated for only once, as it encounters the
statement. The function main() will be called recursively
unless I becomes equal to 0, and since main() is recursively
called, so the value of static I ie., 0 will be printed
every time the control is returned.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Design an implement of the inputs functions for event mode

2957


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2255


Write a program to model an exploding firecracker in the xy plane using a particle system

3683


How to palindrom string in c language?

8826


How can I Create a C program in splitting set of characters to specific subsets. Example: INPUT SET OF CHARACTERS: Therefore, my dear brothers and sisters, stand firm. Let nothing move you. Always give yourselves fully to the work of the Lord, because you know that your labor in the Lord is not in vain. SPLIT INTO HOW MANY CHARACTERS PER SUBSETS: 10 OUTPUT: Therefore, my dear b rothers an d sisters, stand fir m. Let not hing move you. Alway s give you rselves fu lly to the work of t he Lord, b ecause you know that your labo r in the L ord is not in vain.

1924






how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2136


How can you relate the function with the structure? Explain with an appropriate example.

2915


What is full form of PEPSI

1860


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

2857


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

2323


Write a routine to implement the polymarker function

4373


Sir... please give some important coding questions asked by product companies..

1793


Develop a routine to reflect an object about an arbitrarily selected plane

2990


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2401


could you please send the program code for multiplying sparse matrix in c????

3065