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 'far' and 'near' pointers in c.
Why is c called "mother" language?
What are local static variables? How can you use them?
What is data structure in c language?
Combinations of fibanocci prime series
What is the difference between typedef struct and struct?
Can a void pointer point to a function?
Hai what is the different types of versions and their differences
Wt are the Buses in C Language
What is zero based addressing?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
Can a local variable be volatile in c?
Explain what is page thrashing?
What is static and volatile in c?
What is the difference between single charater constant and string constant?