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 / swastisundar bose
46.
0000000000000001
47.The progrm will compile,because it is syntactically
correct.
51.
#include<stdio.h>
int fact(int n){
if(n==0||n==1)
return(1);
else
return(n*fact(n-1));
}
void main(){
int a,b;
printf("Enter number:-");
scanf("%d",&a);
b=fact(a);
printf("\nThe factorial value of the number:- %d",b);
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain 'bit masking'?
Is c procedural or object oriented?
Which is better malloc or calloc?
Which is the best website to learn c programming?
What are the 5 types of organizational structures?
Write a program to print ASCII code for a given digit.
How can I discover how many arguments a function was actually called with?
What is the condition that is applied with ?: Operator?
Find MAXIMUM of three distinct integers using a single C statement
Is main an identifier in c?
Differentiate between full, complete & perfect binary trees.
What is a macro in c preprocessor?
write a program fibonacci series and palindrome program in c
What are header files and explain what are its uses in c programming?
What are the advantages of union?