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
51.factorial of a number using recursion
long factorial(long n){
return (n==0 || n==1)?1:n*n-1;
}
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
The difference between printf and fprintf is ?
If you know then define #pragma?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
can we change the default calling convention in c if yes than how.........?
Explain what is meant by 'bit masking'?
In C language, a variable name cannot contain?
What does main () mean in c?
what is the significance of static storage class specifier?
In a switch statement, what will happen if a break statement is omitted?
What is memcpy() function?
What are the types of type qualifiers in c?
Define Spanning-Tree Protocol (STP)
What is the difference between ‘g’ and “g” in C?
What is the auto keyword good for?