What is the output of below code?
main()
{
static in a=5;
printf("%3d",a--);
if(a)
main();
}

Answer Posted / moloy mondal

the output will be infinite no. of 5s ..bcoz integer a is
static its value wont b changed ever..

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When we use void main and int main?

588


What are the different types of pointers used in c language?

610


Differentiate fundamental data types and derived data types in C.

609


What is difference between constant pointer and constant variable?

626


What does the function toupper() do?

651






Write a c program to demonstrate character and string constants?

1678


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

1594


Can you think of a logic behind the game minesweeper.

2004


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1248


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1403


How can a program be made to print the line number where an error occurs?

646


What are the complete rules for header file searching?

667


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

634


Why array is used in c?

549


i got 75% in all semester am i eligible for your company

1733