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
Design an implement of the inputs functions for event mode
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 ?
Write a program to model an exploding firecracker in the xy plane using a particle system
How to palindrom string in c language?
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.
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.
How can you relate the function with the structure? Explain with an appropriate example.
What is full form of PEPSI
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
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
Write a routine to implement the polymarker function
Sir... please give some important coding questions asked by product companies..
Develop a routine to reflect an object about an arbitrarily selected plane
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
could you please send the program code for multiplying sparse matrix in c????