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 / madhu

if (n<=1)
zap = 1;
it gives a compile time error invlaid l value assignment.
zap is a function and cannot be assigned a value

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I automatically locate a programs configuration files in the same directory as the executable?

1181


Why is c so important?

1070


What does sizeof function do?

1210


What are the storage classes in C?

1165


Write a progarm to find the length of string using switch case?

2073


What is declaration and definition in c?

1107


What is auto keyword in c?

1210


Write a Program to accept different goods with the number, price and date of purchase and display them

6244


When can a far pointer be used?

1036


What is data structure in c programming?

1088


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2142


How can you increase the allowable number of simultaneously open files?

1169


Differentiate between Macro and ordinary definition.

1398


What will the preprocessor do for a program?

1085


What does %d do?

1287