fun(int x)
{
if(x > 0)
fun(x/2);
printf("%d", x);
}
above function is called as:
fun(10);
what will it print?
}
Answer Posted / guest
0 1 2 5 10
| Is This Answer Correct ? | 23 Yes | 3 No |
Post New Answer View All Answers
Explain zero based addressing.
Can a variable be both static and volatile in c?
What is function prototype in c language?
What is extern c used for?
Where is c used?
What is the purpose of ftell?
Is c dynamically typed?
What are preprocessor directives in c?
How can I find out the size of a file, prior to reading it in?
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
How can a program be made to print the name of a source file where an error occurs?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
What does the format %10.2 mean when included in a printf statement?
explain what are pointers?
What are the advantages of c language?