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 / sireesha
54321
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different types of errors?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Write a Program to find whether the given number or string is palindrome.
What is the method to save data in stack data structure type?
find the sum of two matrices and WAP for it.
program for reversing a selected line word by word when multiple lines are given without using strrev
Ow can I insert or delete a line (or record) in the middle of a file?
Subtract Two Number Without Using Subtraction Operator
Describe static function with its usage?
What is null pointer constant?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What does double pointer mean in c?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
If I have a char * variable pointing to the name of a function ..
Do you have any idea about the use of "auto" keyword?