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 43169C 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 24085What 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 22022What 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 27227Main 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 34875Which 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 21013Post New TCS C Interview Questions
What specialties have you billed or coded for? : insurance health
What is continuous data in data mining world?
What is an applicant group and unsolicited applicant group?
Is there a way to determine the last active column in a spreadsheet?
What are the parts of a sql statement?
What is batch information cockpit?
What is not equal in sql?
Do we create table fields with out data elements and domains?
How "control flow" controls the functions calls?
How do you do conditional formatting between two columns?
Explain why acetic acid is used in enzyme bath?
Explain the difference between tables and structures?
What are cilia and flagella? How do these structures acquire movement? What are some examples of ciliated and flagellated cells in humans?
What do you mean by limited liability?
What is RMS Migrations