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
What is bss in c?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
what do you mean by inline function in C?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
How can I prevent another program from modifying part of a file that I am modifying?
How do I get an accurate error status return from system on ms-dos?
Explain what is the difference between text files and binary files?
What is #define?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
What is nested structure with example?
What is a char c?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is cohesion in c?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
What is use of pointer?