main()
{
static int var = 5;
printf("%d ",var--);
if(var)
main();
}
Answer Posted / susie
Answer :
5 4 3 2 1
Explanation:
When static storage class is given, it is
initialized once. The change in the value of a static
variable is retained even between the function calls. Main
is also treated like any other ordinary function, which can
be called recursively.
| Is This Answer Correct ? | 50 Yes | 22 No |
Post New Answer View All Answers
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??
Cluster head selection in Wireless Sensor Network using C programming language.
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
why nlogn is the lower limit of any sort algorithm?
How to palindrom string in c language?
What is data _null_? ,Explain with code when u need to use it in data step programming ?
Write a program to model an exploding firecracker in the xy plane using a particle system
What is full form of PEPSI
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
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