Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

C 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

Answer Posted / deepa

error there is no keyword as then ,therefore it will
treat 'then' as a variable which wud lead it to compilation
error

Is This Answer Correct ?    15 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1917


What are comments and how do you insert it in a C program?

1260


Do variables need to be initialized?

1065


What is modifier & how many types of modifiers available in c?

1032


How can you draw circles in C?

1166


What should malloc(0) do?

1133


Where does the name "C" come from, anyway?

1180


Who invented bcpl language?

1204


Explain how do you list files in a directory?

1083


What is function what are the types of function?

1007


Why do we use int main instead of void main in c?

1159


Why is this loop always executing once?

1068


What is structure in c language?

1185


Explain what header files do I need in order to define the standard library functions I use?

1181


What are structures and unions? State differencves between them.

1190