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's the difference between constant char *p and char * constant p?
What is the difference between volatile and const volatile?
Differentiate between full, complete & perfect binary trees.
Is c is a low level language?
Explain the ternary tree?
Explain what is the benefit of using const for declaring constants?
What are qualifiers and modifiers c?
If null and 0 are equivalent as null pointer constants, which should I use?
When should the const modifier be used?
Write a program for finding factorial of a number.
What are inbuilt functions in c?
Why ca not I do something like this?
What are the scope of static variables?
What is difference between Structure and Unions?
What is a constant and types of constants in c?