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 42848C 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 23897What 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 21822What 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 26819Main 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 34329Which 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 20745Post New TCS C Interview Questions
What is the acid anhydride of h2co3?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
What is the use of sap solution manager and application lifecycle management?
Explain the difference between fixed-bias circuit & self-bias circuit?
How do I fix hal dll in windows 7?
what is agile model and spiral maodel?pls explain with an example?
Why java is said to be pass-by-value ?
write a C# Program add two matrix ?
Which command is used to uncompress gzip files?
What are the weights in pounds of liquid gallons?
How do I find out what service is using a port?
Should I use br tag?
How to concatenate two strings using jquery?
What are variables in typescript? How to create a variable in typescript?
How to decide DO set rating of Transformer?