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...

44.what is the difference between strcpy() and memcpy()
function?
45.what is output of the following statetment?
46.Printf(“%x”, -1<<4); ?
47.will the program compile?
int i;
scanf(“%d”,i);
printf(“%d”,i);
48.write a string copy function routine?
49.swap two integer variables without using a third
temporary variable?
50.how do you redirect stdout value from a program to a file?
51.write a program that finds the factorial of a number
using recursion?

Answer Posted / jessu srikanth

sorry... I made a mistake in the previous 51.answer
i am very sorry...

the solution for recursion is...

long factorial(long n){
return (n==0 || n==1)?1:n * factorial(n-1);
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between functions abs() and fabs()?

1164


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

1008


What is the difference between malloc() and calloc() function in c language?

1058


Why is sizeof () an operator and not a function?

1013


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

1164


What is data structure in c programming?

1063


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1532


Where define directive used?

1081


What is the use of parallelize in spark?

1015


Write a program in c to replace any vowel in a string with z?

1099


How can I get the current date or time of day in a c program?

1208


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2724


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

1132


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2356


How can you allocate arrays or structures bigger than 64K?

1119