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
What are the different types of C instructions?
Why c is known as a mother language?
Explain modulus operator.
List out few of the applications that make use of Multilinked Structures?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
What is a void pointer in c?
Explain bitwise shift operators?
Explain what does the function toupper() do?
Explain the use of fflush() function?
What would be an example of a structure analogous to structure c?
What is the difference between union and structure in c?
How to Throw some light on the splay trees?
how to capitalise first letter of each word in a given string?
What do you know about the use of bit field?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions