What is the output of the program given below
#include
write a C code to reverse a string using a recursive function, without swapping or using an extra memory.
9 42712C program code int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15
6 23840What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement.
5 21772What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value.
11 26663Main must be written as a.the first function in the program b.Second function in the program c.Last function in the program d.any where in the program
19 34134Which of the following about automatic variables within a function is correct ? a.its type must be declared before using the variable b.they are local c.they are not initialised to zero d.they are global.
6 20677Post New TCS C Interview Questions
What is the symbol for average?
Mention what the difference between a 'defect' and a 'failure' in software testing is?
How to enable html5 mode in angular 1.x?
Explain some features of magento?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
Does silverlight have a system.console class? Why?
Since we can create managed bean by two ways as, we can define the bean name in faces-config.xml file so that page can use that OR we can write annotation on bean class so that it is automatically assign to page but I want to know which one is good programming practice ? And also mention disadvantage of other which should not prefer ... Thanking you...
How can a taxpayer get a refund for an overpayment of taxes?
Your default umask is 002. What does this mean?
What is the rule of 9 in bridge?
What is the reshaping of data in R?
Explain the difference between the stack and the heap?
How we can display